Herpes medication in Pregnancy

Have you ever taken the medication for herpes while you are pregnant? Thank you for answer