herpes medication 34 WK pregnant

Have you ever take medication for herpes? I just found out I need it