I'm 31 weeks pregnant and the doctor said I have extra amniotic fluid is my baby gonna be okay?

Polyhydramnios. If you have polyhydramnios, the fetus is at increased risk of stillbirth, although the absolute risk is still low. Be sure that other causes are worked up such as diabetes or a fetal anamoly.