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.