On the other hand, I've met coders who somehow have managed to completely miss very basic CS concepts because they learned the entire thing ad hoc as they needed it and they never realized that they needed Big O, or that they needed to learn how modulo works.
For me, I flunked out of math my entire life until I learned coding and was able to find the answers to "what is this used for?" so I could put it into context. Book learning is good, but it's easier (at least for me) if you have a scaffolding of experience to know where to put each new thing you're learning.
Never neglect either!