Yes, a regular surgical mask will play a role in preventing the infection.

A surgical face mask is highly recommended for people who have the coronavirus infection or have a high risk of exposure. It offers a certain amount of protection against infection from your own hands or droplets from the cough or sneeze of an infected person.