You need an ASTM Level 2 or higher surgical mask to block coronavirus from completely penetrating the mask.
That said, any mask is better than no mask, first because it prevents you touching your mouth and nose with potentially infected hands, and second because coronavirus travels in water droplets which can be stopped by the mask from going straight into your mouth or nose.