Tooth infection

does anyone else have experience with a tooth infection while pregnant? I’m 22 weeks and sooo worried! I am going to have to get it pulled. I just don’t want my baby to get hurt!