Employers would say such an agreement is not immoral, because it benefits them, but employees would say it is immoral, because it harms them. However, most people are employees, so yeah.
Law aside, it is unpractical. All companies are starved for cooks, and by collaborating to keep salaries low, they are preventing the job market from expanding.