Applying for Medicaid for baby in NJ

Victoria
I have private insurance since I am still under my mother's until the age of 26. I am still keeping the private insurance due to the fact that my current GYN does not accept Medicaid and I'm in my third trimester. So I was wondering when do you apply for Medicaid for the baby? Is it before or after you give birth? Thank you