Certain vaccines can help prevent cancers caused by viruses. The most notable ones are the HPV vaccine, which protects against human papillomavirus-related cancers like cervical and throat cancer, and the Hepatitis B vaccine, which helps prevent liver cancer.