While viruses can still occur in people with healthy diets, eating well-rounded meals with foods that contain plenty of vitamins and nutrients can potentially prevent certain illnesses before they occur or worsen.