Not wrong, but that’s not the whole story either. A HUGE part of the labor shift besides just it being cheaper was /is the available, young work force. China being the largest population, had an ungodly number of available workers and those were willing to work in crappy conditions.
that said, China as well as Japan will be having a major demographic problem in the next couple decades. Both of their populations have aged so dramatically due to the stringent population controls ongoing since the 1940s that there are actually more people dying or aging out of the work force in China than there are young people to replace them. Japan is the same way