Is your friend sure she got herpes from the guy you had sex with?
If so, that does not mean you will get herpes from him. The best thing
to do is be tested, for herpes and hiv. Also, would it be possible for you
to ask the guy to be tested? If he is neg, your worries are over.
Apparently you can catch herpes from protected sex and from oral sex, but I believe the risk is low, especially if they had no visible signs of the disease.