Is it worse to take antibiotics while pregnant or to have a bacterial infection?

Antibiotics/pregnant. Pregnancy is not a disease, but a positive choice to have a child. If ill, take the antibiotic prescribed. If conception is undesirable, then use an additional method of contraception during that monthly cycle.
Safe antibiotics. Most of the time obstetrician give medications that are safe. Certain infection at different stage of pregnancy can cross placental barrier. Do not take any medication with out consulting your md.

Related Questions

I am on antibiotic Doxcycycline Hyclate 100 mg 2 times/day for 7 days to treat skin bacterial infection. Is it safe to take the flu vaccine while on it?

No worries. Taking Doxycycline antibiotic does not cause a problem with the flu vaccine. Likewise, getting a flu vaccine doesn't create a problem with the Doxycycline.