"Once the rockets are up, who cares where they come down
That's not my department," says Wernher von Braun
We can both condemn the stupid/wrong behavior and celebrate the intellectual achievements. The point is that we shouldn't hold back our praise of the latter on account of the former.
This is a typical false-dichotomy that plagues contemporary discourse around social justice and various *isms.
If we abided by your reasoning, the US wouldn't have a space program.