I’m pregnant with an STD

So I’m 7 weeks pregnant and I’m pretty sure I have chlamydia and gonorrhea . Would that affect my baby can I get treated for it while I’m pregnant I’m really scared .