No, taking Vitamin D supplements will not prevent getting infected by the COVID-19 virus. That being said, Vitamin D does improve the human body’s immune response and can be consumed as a supplement to increase your body’s general immune response.