Smoke detector shelf life

So basically smoke detectors never really stop working completely they just get less effective over time even if you do keep them well-maintained?