Vaccines play a critical role in public health by training the immune system to recognize and combat pathogens. They introduce a harmless component of a pathogen, prompting the immune system to develop memory cells without causing the disease itself. Nurses are often responsible for administering vaccines and educating patients about their benefits and potential side effects.