not always. i'm about to retire at 65 and I've been a hands-on software engineer for 35 years.
Pro-tip : one type of work that can last is in the Defense industry. Projects in that industry can last 10-20 years or more, and experience seems to be valued much more there.