Yeah that’s how we beat the Nazis in ww2. We invested in their education infrastructure.
You can prevent facism from taking root with a good education sure, but once colonialism or imperialism or facism are present, violence is exceptionally good at getting rid of it.