In high school (at least here in the USA) teachers focus on math that will help students with the natural sciences, namely calculus and a bit of statistics.
For programming, what you need to read about are Logic and Discrete Mathematics. And yes, they absolutely will help you be a good programmer.
Check out the "Notes" (lecture slides), homework, quizzes, exams (all of which have the solutions posted).
Also, check out the syllabus and you can find the readings in the textbook:
Discrete Mathematics with Applications by Susanna Epp. (Google Shopping: http://tinyurl.com/d99nb9)
For programming, what you need to read about are Logic and Discrete Mathematics. And yes, they absolutely will help you be a good programmer.