Medicaid

If your baby is going to be on Medicaid, do you have to apply for him/her before he/she is born?