Yes. Pregnancy doesn't protect you or the fetus from the sexually-transmitted disease. Often, STDs don't have noticeable symptoms so it's important to be tested. It's important to learn about an STD as early as possible so you can seek treatment, especially as the pregnancy develops.