Can you get an STI?

Can you get an STI if both you and your boyfriend were virgins and hadn't had any sexual contact with anyone else?