Extreme pain

Saquoia
So I'm almost 15 wks & today I got a tooth pulled. I am in extreme pain so the dentist prescribed Tylenol #3. The dentist & pharmacist said it's safe but I'm scared to take. Idk what to do !?!