Can you get an STI?

Can you get an STI if you and your partner were both virgins and hadn't had any sexual contact prior to each other?