There's nothing wrong in hiring immigrants. There is however something wrong where virtually every other profession has protection, but programmers don't. So wages will be lower compared to other professions, making it a job where skilled people might want to avoid even though they enjoy it.
You either immigration for every profession or non at all. Not screwing one profession in particular.
You either immigration for every profession or non at all. Not screwing one profession in particular.