Not necessarily. While some knowledge of mathematics can be helpful for certain types of programming, such as data analysis or machine learning, it is not a requirement for all types of programming.
Many programmers are able to learn the mathematical concepts they need as they go, and some programming languages, such as Python, are designed to be easy to learn even for those with little or no background in mathematics.
Ultimately, the importance of math in programming depends on the specific type of programming you are interested in and the languages you plan to use.