No, that's true, but it's definitely possible. I know of plenty of engineering students in my home country who came here from China (and India) to do their masters, and ended up staying for work.
But yeah, it definitely requires certain circumstances, and it's not realistic for everyone.