True. Newer ones will last ~10 years, and will shout an EOL warning when they near the end of their life. I've got hardwired combo smoke and CO detectors (AA battery backup) from Kidde at the house and they have this feature.
The nice part of having them hardwired is that the house is now like an office/other building: if one trips, they all trip, so the whole house is alerted. The newer ones have far fewer false alarms, too (pizza in the oven I am looking at you...).
The battery only CO monitors by Kidde, if I recall correctly, are cheaper than the price of the combined smoke/CO detector minus the price of a Kidde smoke detector. I recently bought a combined unit (ironically because I had a second wireless unit I didn’t recall purchasing that was complaining about low battery near one of the wired units and could not figure out why it was chirping an undocumented signal) and almost put it back on the shelf when I saw the price.
By all means put one in your house but I think it’s a racket to have all four detectors in your house also be carbon monoxide monitors when you can just put a battery unit at the far end of the house from the combined one.
Hardwiring is good, but if retrofitting, you don't need to do it. Some of the 10 year battery powered units can wirelessly link (and thankfully not over something inconsistent like WiFi or Bluetooth).