Nobody has the answer I’m afraid, we’ll have to see. Currently at least you need a human professional to review what the LLMs do, no way of telling if that will change. Although, I don’t think it’s likely that code generation tools will become fully self sustainable.
My best guess is that there’ll always be a place for qualified, deeply curious people in the field.. If not, a lot more than programming is gonna become automated, and well… Society is gonna have bigger problems.
I’d recommend prioritising rational thinking & problem solving (those are severe limitations of LLMs today) and if all else fails, possibly a hobby that you might somehow fall back on for employment in a post knowledge-work economy.