For me, it was not.
I did study Math, and while most of the knowledge can't be used directly in my daily job as a programmer, and most of the higher math was forgotten, I was taught to think abstractly in several different ways (like algebra, math analysis, statistics, geometry etc.) All of those subject are very beneficial to study, IMHO, even if you don't apply them directly in your job.