You can train a predictor on anything: that's how the famous cases of 'racist AI' came about. The point is, you can't establish a causal relationship without accounting for confounders. If you're starting with a question established by racists, with 'race' and 'IQ' as your two poles, and human populations as your data, good luck managing that.