I believe there is multiple aspects you need for programming...
Math is one of them, you do need to know how to problem solve and what operations to use first.. think BEDMAS

also in this world randomization is a must... that requires math... basic but still requires it...
Also there is language knowledge... I always sucked at english throughout school... but the fact is english has a syntax you need to follow similar to that of a programming language...
So yeah I say you need to know math... do you need to be good at it? not unless you get indepth with programming and get into some good randomazation/algorithms etc. But you do need to atleast grasp the concept.