Yes, but here's the problem: Those steps behind you are being destroyed. It's not the senior engineers who are getting replaced; it's the people fresh out of college looking for their first job. And as AI gets better each step above that first job will disappear.
You'll be fine. Your job won't get replaced until after you're gone. But when you look around you're not going to see any young people.