Is it possible for a virgin to have pid?

Technically yes! With external rubbing of genitalia and oral sex, even though direct penetration does not occur! Ceertainly would be NOT a common occurrence!