In some countries yes. In the UK if you want to make 20 or more roles "redundant", you have to group employees by reasonable groups, rank them by reasonable measures, and then let go those at the bottom. You also have to consult with employee representatives at each stage. Then, employees are entitled to minimum compensation amounts and that isn't taxed in the normal way. Much of Europe has similar or stronger processes.