Is it wroth to learn Computer Programming in or before BS? Does it provide opportunities?

My daughter is planning her last semester before starting boarding school next year as a freshman. I have noticed that some boarding schools have interesting technology curriculum as well as extra curricula. I wounder if it is worthwhile for her to learn Java or Python in the Spring semester, or is it better to focus on building stronger foundations with more math and hard science instead? I think she will be already an average or somewhat above, but not top math and science student at a good BS.