Yes, of course! Is it the best way to spend your time having the goal in mind? Maybe not.
The issue with "learning math" is that there is more math being created than you are able to learn.
"a good computer scientist" is very broad.
Does it mean "a good 3D engines programmer" - then probably you want to know linear algebra, things like quaternions etc.
Does it mean "a good browser front end developer" - then probably you want to invest your time somewhere else, maybe web design, learning how to sketch.