Can getting enough vitamin D help my immune system?

Can getting enough vitamin D help my immune system?