Yes the player would have to be in on the deal, they couldn’t be forced against their will. But if you think some players wouldn’t participate in this kind of “cheating” you’re kidding yourself. It would be just like when a player works out a new contract with the team trading for him in order to facilitate the trade.