Pelvic Inflammatory Disease

Hello! I was diagnosed with PID back in 2017. I believe that’s what caused my miscarriage because it all happened around the same time. The doctor that diagnosed me didn’t give me any detail he just gave me antibiotics and sent me home. I read last night that PID can cause infertility if you had it for too long. Well idk how long I had it before I went to the ER. Has anyone been diagnosed with PID and got pregnant. I’ve lost two more pregnancies since then and I’m worried that it caused damaged