Amoxicillin

So I been having a toothache for the last few days and I went to the dentist to pull the tooth but instead they gave me amoxicillin.did anybody else take these antibiotic while pregrant??