It is a reasonable question and it is usually asked in a way that assumes the answer. The useful version is not whether coding is worth learning but which parts of it are, because the balance has shifted rather than disappeared.
What has genuinely changed?
Producing code is far less of a bottleneck. Syntax, boilerplate, remembering how a library works and writing the tedious middle section of a function have all become quick, and somebody who cannot recall the exact form of a command is no longer stuck.
That was a substantial part of what learning to code used to mean.
What has become more important?
- Reading. Most of what you run was written by something else.
- Judging. Knowing whether code is correct, safe and appropriate.
- Specifying. Describing precisely what should happen, which is most of the difficulty.
- Debugging. Finding out why something does not do what it appears to.
- Architecture. Deciding how pieces fit together, which models handle poorly.
Why is specifying so much of the work?
Because the hard part of programming was never the typing. Working out exactly what should happen in every case, including the awkward ones, is the actual task, and a tool that writes code perfectly still requires somebody to know what should be written.
People who cannot program produce vague specifications and receive code that satisfies them vaguely.
What happens without the underlying knowledge?
You can produce something that works and cannot maintain it. The first script is fine, the fifth builds on the first, and by the tenth a change breaks something and nobody in the room can say why.
This is the position a large number of people are currently in, and it is not comfortable.
Does that mean learning it the traditional way?
Not exactly. Memorising syntax has genuinely lost value, and time spent on it is better spent on reading code, understanding what makes it wrong and building things that are slightly too hard.
The curriculum has changed more than the answer has.
What about jobs?
Entry-level work has been affected, and the demand for people who can judge, integrate and debug has not fallen. The honest position is that the path in has become harder and the destination has not disappeared, which is a real difficulty for people starting rather than a reason not to.
What if you only want to automate a few things?
Then a modest amount of learning goes a very long way. Understanding enough to read a script, check what it touches and fix a small problem is achievable in a few weekends and covers most of what a non-programmer actually needs.
That is a different goal from becoming a developer and it is a perfectly good one.
What is the summary?
Learning to write code from nothing matters less. Learning to read it, judge it and specify it matters more, and none of that is available without doing some of the first. The people who will struggle are the ones who skipped straight to the output.