Only among the fanbase. In-universe he is pure good and arguing that point is pointless.
Among the fanbase who listen to Akira Toriyama, perhaps. According to Toriyama, Goku is
not supposed to be an example of a righteous hero. He fights because he likes to fight, and secondarily because it helps people. According to Toriyama, Goku acting as a righteous hero is down to the English dubs changing his dialogue to be more in line with that characterization, which Toriyama did
not appreciate. You can see this if you contrast the Japanese and English dubs. Especially in light of certain plot point that have arisen in Dragon Ball Super, I cleave to that characterization. I
cannot imagine how the English dubbers are going to preserve, "Goku the righteous hero," with the latest arc's dub.
That said, even in the English dub, Goku has his bad moments. "No, Krillin, I get that Vegeta's evil and that by asking you to spare him I'm endangering every living soul on Earth but
dat power, yo."
As a result, I imagine that the, "pure heart," required for the use or deflection of the Spirit Bomb is the same, "pure heart," that allowed Android Saga Vegeta to become a Super Saiyan. Pure, not good. Purity of purpose/composition, to be specific.