Yes/no. COBRA is indeed the law, so yes you will have the option to continue your health plan for awhile (how long can very but > 1 year), but it can be remarkably expensive to do so. Your now paying your portion, the employers portion, +2%. And you've just lost your source of income. For those of us with high paying jobs who have made good financial decisions, this is probably OK for a time. But an extended unemployment, or being in less good financial shape and it can be effectively unaffordable.
Stop paying COBRA, unless you have paid significantly into your deductible. You can immediately get an ACA plan on termination for, comparatively, pennies.
YMMV. When I was laid off earlier this year COBRA was only slightly more expensive than an equivalent marketplace plan. But agreed don't skip checking the marketplace!
Also be aware of the "COBRA gap". You have the option to (retroactively) opt into COBRA for 60-days, so depending on your situation it may make sense to do without insurance within the gap, and opt-in in the unlikely event something catastrophic happens before your new employers insurance kicks in.
One confounding factor in my case may have been that I was employed across the country from where I lived, so the COBRA coverage vs the state market were completely different markets.