In many cases, yes. Human papilloma virus infection is main responsible factor for cervical cancer. Vaccine that prevent people from HPV infection is now available. Hence, HPV vaccination can prevent cervical cancer in more than 90% people. This vaccine work best when given before she/he starts having sex (before the age of 15 years). But it can also help if you have already had sex.