Absolutely not. For some people, like those in the tech industry, it's a very valuable skill. Most software engineers I know, for example, can “code” in a variety of languages. But it's still not a skill that everyone needs or could find useful.
Is it worth learning to code in 2021?
If you want to learn coding in 2021, it is absolutely okay. Because there is a scarcity of quality programmers. If you want to start learning, I think you should start with python. It's easy for a beginner and enriched with a huge number of libraries.