They most definitely were far richer at the end of the USSR than at the beginning. You don't pull a space program and computer systems out of your butt using using sticks and rocks you found by the river.
They were behind the West in both of those by the end not to mention what really matters which is the standard of living of their citizens. If you travel between East and West in Europe you can still see the differences today even after decades of Westernization. Without the Soviets seizing control, Russia and the Eastern bloc countries would have been just as wealthy as the rest of Europe and all of Europe would’ve been better off with the additional years of trade and reduction in military spending.