Yes, vaccinations can prevent infections linked to certain types of cancer. For instance, the Human Papillomavirus (HPV) vaccine helps prevent cervical and other types of cancer, while the Hepatitis B vaccine can lower the risk of liver cancer. Staying up-to-date with recommended vaccinations is an effective strategy in cancer prevention.