Yesterday while cooking I set off the smoke detector, no I did not burn anything. They go off when I cook over a high heat. And yesterday once they started going off they would not stop. I ended up having to disconnect them all (they are hard wired with an interconnect) and I replaced them this morning. Aaaaaaaand let me tell you, I had a sleepless night last night knowing there were no detectors installed.
https://www.southernliving.com/how-often-should-you-replace-smoke-detectors-8774122


Maybe, if it is made past a certain date. Mine in the image, from 2005, did not.
Admittedly I did similar. At one point I had a non-working detector and noticed it was long expired when I tried to replace the battery. I realized I had been in my house more than ten years and the detectors had been installed by a previous owner, probably in the early 2000’s. Those did NOT beep when they expired
When I replaced those, the new ones were all configured to beep when expired and they were starting to push the sealed detectors with ten year non-replaceable battery. Sure enough, ten years later they all started beeping that they were expired.
I guess I assumed that it’s been 20 years and most people will have replaced detectors at least once. In my state, there’s a required inspection that all detectors are up to date before a house can be sold
(Which is really annoying because mine are all battery but the current standard is they must interconnect so I’ll need some electrical work if I want to sell my house)