Unfortunately, you can be pregnant and have an STD at the same time. In fact, having an untreated STD while pregnant can cause serious harm to you and to your pregnancy. So it’s important that you get tested immediately.