It is important. The times we are living in right now, we need to learn how to code so we can program a computer and learn how to think. How to instruct our machines to execute tasks that we want them to execute. Like for instance, you can learn how to write algorithms that would predict when a person would be going through a hair loss period.
People can already detect early signs of cancer. So why not learn to code and write algorithms that can predict whatever you want them to predict. This is the age we’re living in. And don’t think that with coding you can only write algorithms, no sir. Coding is an enormously flexible tool that you can do/invent amazing things with.