Yes it is a preventive. But when infection spreads only in local areas and you are not in contact with suffers.
Next Steps
If you or your nearby person is infected than chances of your suffering increases. Medicine can’t effective at such movement.
Health Tips
It’s better to take any medicine with a qualified doctor’s guidance.