If the endgame was just producing code, sure, but that was never what learning to code was about. The skills do not become less valuable. Critical thinking and problem solving using logic is the endgame. Chatgpt can skip the the learning pro