Certainly but opening borders means you get not only labour but additional stuff along. In the hypothetical situation where immigrants are teleported to the workplace and then send back by cosmic rays what you are saying would be true. However IRL there are certain externalities that make free market outcome sociallysuboptimal