The HPV (Human Papillomavirus) vaccine works best if it’s given before any type of sexual contact has ever happened. Getting the vaccine before you become sexually active allows your immune system to build antibodies that will protect against HPV in the future. HPV causes almost all cases of cervical cancer in females and most of the head and neck cancers in males under 40 in Alberta.