Foundations are the key to the "is it worth it" question. I have come to know many outstanding programmers, but when it comes to face a non-standard problem that requires too much out of the confort zone thinking, a CS engineer with a degree, makes a difference, and no one can avoid that.
It's also true that many foundations can be acquired (IMHO incompletely) from online courses, but most of the math, physics, or any other not computer science related courses during the university years, are not meant to be an everyday tool, but a way of teaching/training us how to think in a certain way, and solve complex problems.