If your partner has an outbreak of herpes, you should avoid sexual contact until the infection has cleared.
If you suspect you may have caught herpes from your partner, seek advice from your GP or a sexual health clinic.