Pregnant with chlamydia

I'm 18 weeks pregnant . Today found out I have chlamydia . I have to take 4 pills for it as well as my partner , could I have passed it on to him , or him to me ? Anyone know more about chlamydia