Generally - yes - after termination of your employment - your employer may terminate your medical; insurance and all your benefits.
the Consolidated Omnibus Budget Reconciliation Act (COBRA) health benefit provisions amend the Employee Retirement Income Security Act, the Internal Revenue Code and the Public Health Service Act to require group health plans to provide a temporary continuation of group health coverage that otherwise might be terminated.
COBRA requires continuation coverage to be offered to covered employees, their spouses, former spouses, and dependent children when group health coverage would otherwise be lost due to certain specific events. COBRA continuation coverage is often more expensive than the amount that active employees are required to pay for group health coverage, since the employer usually pays part of the cost of employees' coverage and all of that cost can be charged to individuals receiving continuation coverage.
In other words you might be required to pay COBRA premiums and electing COBRA is optional.
Losing your job-based coverage is also a special enrollment event in the Health Insurance Marketplace (Marketplace). The Marketplace offers "one-stop shopping" to find and compare private health insurance options. In the Marketplace, you could be eligible for a tax credit that lowers your monthly premiums and cost-sharing reductions (amounts that lower your out-of-pocket costs for deductibles, coinsurance and copayments), and you can see what your premium, deductibles, and out-of-pocket costs will be before you make a decision to enroll.