Taking drastic precautions to keep from getting sick

Some people around the county are taking precautions like wearing surgical masks, but will that really prevent someone from getting sick?