That was part of it though I think space engineers would never have been unemployed or out of food - just reassigned to much more boring projects. Russia also has ways of ahem "discouraging" unauthorised trade of military secrets.
With China's ICBMs, aren't they already advanced enough that collaborating on space exploration with NASA won't teach them much ICBM technology that they don't already know?