Antibotis during pregnancy

My doctor prescribed me an antibiotic to take due to a bladder infection but I'm so nervous has any anyone else had to take antibiotics during pregnancy? I'm 25 weeks