Amoxicillin

Has anyone ever had to take amoxicillin while they were pregnant, due to an infection? Was it safe? Any side effects for you or the baby?