While primarily used to detect cervical cancer, a Pap smear can sometimes identify other infections or abnormalities in the cervical and vaginal area. However, it is not designed to detect sexually transmitted infections (STIs) or other types of cancer.