exposure to an infectious disease like hpv does not imply that you will even get it. even if you develop hpv there is no certainty that you will develop a cancer many many years later but your risk is definitely higher.
how long would it take cancer to develop after hpv exposure?