The simple answer is yes, but efficacy is still not 100%. As masks sell out everywhere, it's time to understand what they do to help
If you decide to use a face mask, choose a NIOSH-approved N100 mask because it protects the wearer by fully covering the mouth. An N100 mask will help prevent inhalation of 99.7% of airborne germs, which means they aren't a totally fail-proof method. N95 and N99 masks can also be effective. They are still your best bet IF you have a proper fit and it is not loose on the sides. Protection from debris and materials that are larger than 0.3 microns or greater can be achieved with both N100 and P100 respirators, as well as N95 and N99 respirators.