HPV Vaccination

Patient: Dear DoctorI would like to take everyone in my family for the HPV Vaccination, , however I have scouted all websites and they do not have an answer. . My question is, does the vaccination prevent you from being a carrier of the disease if you have sex with an infected person after the vaccination or does it only prevent cancer and genital warts of the certain strands?Thank you