There are tons of studies that show the wearing of masks is not effective in preventing the spread of COVID-19. You better are off just staying away from anyone who is coughing, because this is main way the virus is spread.
New Study Casts More Doubt on Effectiveness of Masks in Preventing COVID-19 Spread