Cavity while pregnant?

Haley

I've had bleeding gums badly throughout my pregnancy but that's all. I never had dental issues in the past so I didn't think much of it. I just looked and my two upper rear teeth have black decay along the gum line! How dangerous is this? Can I get a filling safely while pregnant? Could this hurt baby?