A Pap test can detect certain viral infections such as human papillomavirus (HPV), which is known to cause cervical cancer. Early treatment of precancerous changes (cervical dysplasia) detected on the Pap smear can stop cervical cancer before it fully develops. A woman may have cervical cancer and not know it because she may not have any symptoms.