Hydrocortisone cream

If I use hydrocortisone cream on my genitals that someone with herpes used on there genitals for razor irritation. If I used it after them would I get herpes ? It was the kind in a tub