If you wear a mask properly (i.e. not taking it off without throwing it away, not adjusting it, not wearing it with a beard, making a full seal around your face, etc...etc...) then it will give you minimal protection against covid-19 because you still have mucous on your eyes and your sweat glands produce moisture molecules which the virus sheds from.
If you don't wear it properly you are increasing your risk.