I majored in math, learned how to code after college, work as a dev now.
The cs majors I've worked with don't know anything about the process and approach to building real programs after 4 years of college (US). They all learn that as junior devs or on their own too.
All the interviews I give with CS majors looking for a junior position go the same way. They nail it on data structures and algorithms but don't know anything about application architecture, SDLC, dev tools, etc... You know, the important shit.
If you want to get a job after college as a dev, you'll have to be able to write code well enough to answer some leetcode style questions though. Don't expect to get a job where you'll learn to code as you go. They all require at least some basic coding ability. But, if you understand the higher level/architectural stuff, you'll immediately stand out as an applicant.
Major in math, learn to code on your own. There's plenty of free knowledge out there
https://github.com/ossu/computer-science