Yes, HPV infection can be effectively prevented through vaccination. The HPV vaccine is highly effective at preventing infection with the types of HPV that cause most cervical cancers, as well as some other cancers and genital warts. Vaccination is recommended for preteens, but it can also be given to older individuals who were not vaccinated earlier.