Applying for insurance

Im 4 weeks pregnant and i just wanna know when is the best time to apply for medicaid for me and my child?