Do the vaccines prevent against all types of HPV?

No, they do not cover you against all types of HPV. It would be impossible to create a vaccine that covers 40 different viruses. They were designed and created to protect you against those types of HPV that cause the most problems.