It depends on the kid. I’d have been astounded if my older kid had majored in anything but CS. He caught the bug in 2nd grade, and had enough work experience when he applied to college that he had a pretty good idea what working in the field was like.
Younger son who majored in IR might have been better off with history in retrospect. He didn’t change.
I think the statistics are that half the students end up switching majors at least once. So I do think you should choose a school that has multiple strengths if you can.