The best example being Korolev, possibly the greatest rocket designer in history (certainly up there with Von Braun and Xuesen, and in my opinion more impressive), who died because he was sent to the Gulags by a bitter politician (this is an incredibly short edit of the full story, but that is a factual statement).
Korolev built working rockets the US said were theoretically impossible, and he did it because he couldn't afford to build the rockets the way the US were doing it. So he got resourceful.
Had he not died in 1966, I suspect the Soviets would have beat the US to putting a man on the moon.