Yes, that is true and sometimes advisable for companies which face an exodus of staff to the competition. It can be expensive but if you have a company determined to squash unlawful competition this way, it can be an effective strategy.