You need to learn math to an extent, as it can help you as an ethical hacker, especially since you might end up creating algorithms. You won't need complicated math like calculus; instead, you'll learn computer maths like number bases, cryptography algorithms, bits and bytes, etc.