Teeth

I have to get two teeth pulled in two day and just found out I am pregnant and I have to take amoxicillin doctor said it is safe. Is this ok ?!? I am just worried! 😩