A piece of ordinary cloth on your face does not filter smog, does not prevent any airborne infection droplets from reaching you, essentially only lowers the chance of your cough hitting somebody else. You need an N95 or better to really do anything to protect yourself. Also even if you have a high grade mask, wearing it so it actually seals to protect you is hard and most people don't do it well.