No, not the same thing at all. Forcibly stopping your citizens from leaving your country altogether is not the same thing as another country stopping them from entering theirs.
Communist countries have historically implemented strict emigration policies [0]. For example, East Germany famously had a policy of mass-murdering citizens who tried to escape to the West [1].
[0] https://en.wikipedia.org/wiki/Emigration_from_the_Eastern_Bl...