is amoxcicillin safe to take during pregnancy?

I went to a doctor this morning ..but she is not my ob and she is not an ob.. and she prescribed me amoxcicillin for medication .