Do you need to get a Pap smear if you're still a virgin?

I noticed there are girls on here who get Pap smears despite being a virgin which I found strange because I was under the impression that you're supposed to get your first one 2 years after you start having sex.