People in USSR were kept inside against their will and were used as a forced labor. They absolutely earned their wealth, not the nomenklatura.
You cannot divorce one from the other.
[edit] (They earned units that they could exchange immediately or at some future time. Whether or not that amounted to wealth is based on what those units could or did turn into at the point of measure within the framework of the society in which they exist.)
But yes, they were kept inside the country, which is a separate issue.
Yes, that’s exactly why people who actually lived there now regret its collapse. The younger the person, the more they were oppressed by the KGB.