It's possible but it will be hard to get away. If there's an official policy to do it, there might be whistleblowers or people might notice patterns. If that happens, courts tend to take a very dim view of what they see as intentional retaliation or creative workarounds to not follow the court orders. The court might first tell Tim Cook to appear in court to answer what exactly happened and who decided to do it.