health insurance

If someone is eligible for Medicaid by not making enough money at their new job and 90 days prior they had coverage from a previous employer do they HAVE to apply for Cobra if they are in the hospital even if they now qualify for temporary Medicaid?