If worn properly, a facemask is meant to help block large-particle droplets, splashes, sprays or splatter that may contain germs (viruses and bacteria), keeping it from reaching your mouth and nose. Facemasks may also help reduce exposure of your saliva and respiratory secretions to others.
While a facemask may be effective in blocking splashes and large-particle droplets, a facemask, by design, does not filter or block very small particles in the air that may be transmitted by coughs, sneezes or certain medical procedures. Facemasks also do not provide complete protection from germs and other contaminants because of the loose fit between the surface of the facemask and your face.
https://www.fda.gov/medical-devices/personal-protective-equipment-infection-control/masks-and-n95-respirators