Exactly this. The more languages you know, the more you understand how to solve problems independently of the language and the faster you'll pick up new languages.
I've started learning coding from Pascal and Delphi in middle school, then moved to C++ in uni. After that learning Java wasn't that hard, and I've been picking up Python recently. Even learned some VBA for Excel macros that came in handy a few times. And got a bunch of SQL/database management experience along the way.