Most programming jobs involve a lot of algebra. You have variables, you do arithmetic to those variables, you apply functions. It's not a great surprise to me that if you are good at high school algebra, you can probably learn how to program.
You might not be a great programmer, but you'll be able to do it.
Having recently taken a battery of psychological tests that measure several different cognitive functions, I am one living example that that is not the case.
How can you be an example that what I said "is not the case"? Are you saying that because you are not similarly good in two different sets of abstract formal systems, that this isn't a good indicator in general?
You might not be a great programmer, but you'll be able to do it.