Kind of. There is a mitigation in the spec https://github.com/WICG/close-watcher#abuse-analysis
Briefly, the user may need to press back a couple times in order to escape, but the maximum number of presses needed is bounded and is dependent on how much the user interacts with the page. Of note, closing the tab bypasses this API entirely, at least according to that page.