So long as you are wearing underwear, OR your genitals don't come into contact with their genitals, or there is no mouth to genital contact, you're fine.
You need mouth to genital, genital to genital or genital to anal contact to get an STD. STDs also don't travel through clothing. This includes HIV.