they taking my baby at 37 weeks

The doctor told us that she will be delivering our baby girl at 37 weeks which will be December 5th due to my diabetes and she might have to stay in the nicu and also depending on the baby sugars levels she might not be able to come home please I need advice so I can better prepare my self has anyone gone through this did your baby have to stay in the nicu and if so how long and did anyone have to leave their baby in the hospital if so for how long I did good with my sugar until now my ac1 number went from a 9 to a 5.5 in 3 months and now these last two months it went up to a 6 and my fasting number are 130 and up I don't want to leave my baby i can do the nicu but I can't go home with out her