Hsv2 while pregnant

Do I have to take my valtrex meds if I have an outbreak while pregnant? I’m still early on