I'm a CS major myself but when I first entered university I was pursuing a degree in statistics and had hardly done any computer programming at all in high school - I was computer literate and played plenty of games but programming had never been accessible or interesting until I started using SASS and then moved on to more powerful languages.
This is why I strongly advocate for taking a gap year - or 2 or 5. Kids need experience - broad real world experience being exposed to lots of different things - in order to determine what turns their crank and rises to the level that they (a) know what they are getting into and (b) actually want to do it for (possibly) the rest of their lives.
This focus on moving from birth to career in one unbroken path increases the odds that people commit the sunk cost fallacy - with their life! - continuing to pursue something only because they started doing so without really knowing themselves. What a silly waste of this one and only magical life.
I didn’t know what I wanted to do for a career until I was almost done with graduate school (I have a bachelors in history, a bachelors in linguistics, and a masters in educational psychology - I’ve worked as a professional programmer for nearly 25 years). My kids have gone to college, but they didn’t know what they wanted to do either. My oldest daughter is a semester from graduating and has finally decided what she actually wants to do - in a field wholly divorced from her undergraduate degree. So now she is applying to graduate programs. Frankly, none of my kids college bound friends knew what they wanted to do until they were almost graduated. It seems to me that many of us learn what we want to do by being exposed to many different things in the college environment. But it takes years and sort of floundering to figure that out.