STIs & virgins?

Might seem a silly question but can a couple of virgins get STIs from only sleeping with each other? 
I know what STI stands for but could they ever be in your genetics or anything like that?