Hair follicles

So I had a bacteria infection on my neck and had these pus bumps anyway the doctor gave me these creames to try and sometimes I would put the cream on my vagina if I got a rash from shaving? Is that bad? This was like 2 months ago. They were creams for like rashes and they were like creams like hydrocortisone just stronger