Can you have an sti if youre a virgin?

I think i might have one. Because it hurts sometimes and i have the burning while peeing thing. But is that even possible?