Dental work?

Sara
I had I root canal about 3 years ago and they had put a cap over it.. Well today my cap had broke off causing my filling to fall out. I'm 5 almost 6 months pregnant is it safe to go to the dentist and have this fixed? Without putting the baby in any danger?