Safety and protection

I am a virgin and my boyfriend isn't. I'm cautious about STD's and want to ensure I'm safe. Can you catch anything from the penis being rubbed on the vagina for pleasure and not actually inserted?