I feel I must disagree with this. In my personal experience, a computer science education will teach you algorithms, yes. You will learn how a computer operates a a low level. You will even learn logic.
However, for the vast majority of people, this is not enough to build the mental models of how computation and logic really operate. You see this in the sheer number of people who graduate and don't know how to code. We learn best from tight feedback loops which an algorithms text book simply cannot offer. Writing that code, on the other hand, will give you a deep insight into how it really works and build a lasting mental model.
It is coding which ultimately changes the way you approach a problem and think through it.