A question?

I just want to know. If your a virgin and never had sex yet at all can you still Catch a STD or STI or do you have to be sexually active? Just wondering.