Bactrim?

My OB prescribed me bactrim for an infection that I have. She obviously knows what she’s doing.. but I’m just wondering if any other mama’s took it while pregnant?

I’m 28 weeks pregnant & wouldn’t even be second guessing anything, but the pharmacist didn’t even want to fill the prescription because it can cause “spontaneous abortions.”