Urine infection

Sa

Had a call from my midwife to says my urine sample came back with a infection. Been put on tablets for it, she said it’s common in pregnancy but has anyone else had this too? Thank you