There are vaccines available to try to prevent HPV infections. Getting an HPV vaccine before sexual activity begins is ideal.