Pro Higher Ed: Programming classes are great for repetition and rote memorization. I had one class that was 70% Bash and VI (not VIM) - just the basics. Labs were agonizingly mundane, drilling the same commands over and over, but now at my job I'm considered an SME (subject matter expert) on random Linux servers because the basics were drilled into me. I was hired as a developer, but my general understanding of system led me to become more valuable
Pro Maybe Not Higher Ed: My sophomore year our IT department was hiring for two student programmers, and I was accepted (though including me, only two applied). However in my first 3 weeks of training I think I learned, in the field, 90% of what was taught for my junior and senior years (Web design, database design, SQL, data structures, and the most important (since I was hired after my senior year): institutional knowledge.
Working in a professional environment, even as an intern or student, you get to learn how project timelines and management work, how businesses calculate/expect returns on their requests (and maybe react to critical successes of failures), analyzing and modifying legacy code bases, integrating, deployment workflows, source management, how frustrating it is when vendors have terrible APIs, bureaucratic nonsense and pace, etc. All of this is critical knowledge you need at some point, so get it early (and pad that resume). If you can publicly contribute or distribute code/solutions via GitHub or whatever, that's an asset for sharing with employers (if it's semi- decent).
I will and ask you a question I ask student developers in interviews: "In what field do you want to be working in in 10 years". I get answers like "Machine Learning", "AI", "Web Development", "Networking", etc. All CS categories. So I push back and say: "Ok, but for what purpose?" and list off some broad options "education, health, entertainment, gaming medical, financial, legal, political, industrial, environmental, etc?".
Very few have a good answer to that question. They "like to code", or say "anything really". I encourage everyone to look at CS a tool towards a cause or a goal. Find a field, locality, or business you believe you'd like to one day make an impact on, and keep thinking about how what your lessons can contribute to that.
But again, please look for real-world experience.