It's best to get your essential nutrients from whole foods, but supplements can be a convenient way to ensure you're getting enough of certain nutrients that are essential for your immune system.