8 weeks

I think I have a tooth infection not sure though my tooth is just hurting so much .. Is it safe to go to the dentist and if I do have a tooth infection does it harm my baby????