Tested positive for chlamydia

I just got my test results from my dr appt 4 days ago and I tested positive for chlamydia... has anyone ever had it while pregnant? What happened? Did everything turn out okay? I’m absolutely terrified and have no idea how this happened.