Yup, most seeds last a few years at least, some longer than others. With cool, dry, dark storage they can last a long time. In the Middle East where conditions are very dry, seeds have been known to sprout after 1000's of years:
A sapling germinated earlier this year from a 2,000-year-old date palm seed is thriving, according to Israeli researchers who are cultivating the historic plant. https://news.nationalgeographic.com/news ... seed-food/
Tomato seeds for me generally last 3-5 years. By the fifth year the germination rate is declining. That just means you have to plant extra seeds. Any seed that does sprout produces plants that are just as vigorous and healthy as any other. A few years ago a friend gave me a bunch of seeds that she had stored from 1980 or so. I have no idea what conditions they were stored in. I diligently planted them all and not a single one sprouted.