I love math from childhood. I wasn't really that good with math, I was ok with it. Since then I have learned to program and I must truly say that by programming I have gotten better in math. Maybe not because of using math in programming but more with the problem-solving way of thinking you have when you program.
Bottom line, I don't think you have to be very good with math when you program, programming might help you with the math, and math might help you with programming. It's a win-win deal.