HPV vaccination has been shown to prevent infection with certain strains of the sexually transmitted human papilloma virus, or HPV. This virus is the leading cause of cervical cancer, so vaccination can help prevent cervical cancer. But getting vaccinated cannot treat HPV if you already have it, and it cannot treat or cure cancer.