Agreed. Importing millions of unskilled laborers is insane as automation picks up. Those jobs will be made redundant in short order. (They probably already would have been, but a massive pool of cheap labor meant little incentive for automation. Similar to the first steam-engines being unused by the ancient Greek ruling class http://www.mlahanas.de/Greeks/HeroAndLoon.htm)
Bringing in the select best and brightest from other countries is certainly wise though.