Saying you want to "learn to code" just to get into a tech company is like saying, "I want to learn how to lay bricks" when you're interested in becoming a real estate developer.
You don't need to learn to code. You need to understand how it all fits together.
Instead of learning how to punch "developer" jargon into a wall of green text, we should be teaching our kids how to be creative, how to use low-code or no-code tools.
In 1900, 40% of the population was involved in farming. Today it's 1%. "Coding" is becoming modern-day farming.
Just so I'm clear - being a computer science guy or/and a software engineer is much more than "coding", it is to study and to learn how to build a plane, and a "coder" in this analogy is an airplane pilot.