Herpes and Pregnancy

So for anyone who has dealt with genital herpes in pregnancy - during delivery I know I was told that if you have an outbreak they just do a c-section however what if the outbreak is closer to where the c section would happen than your actual vagina. Does this make a difference? I would love anyone’s input/experience as I’m freaking out. :/