Dumb question so help pleaseee

Is it possible to contract genital herpes if the guy just rubbed his dick on your vagina/clit? (But it didn’t go in)

Help 🤷‍♀️