Human papillomavirus (HPV) by itself should not affect your ability to get pregnant. But in some cases, having HPV can increase your risk of developing precancerous or cancerous cells in your cervix, which could affect both your fertility and your ability to carry a baby to term.