Yes. Because it also allowed Toronto an out of DeRozan's contract.
It's the same reason why the Kyrie trade is worth it for me even if he bails like a coward. Whatever contract we gave Isaiah, even assuming he didn't injure his hip, I'm not sure he would have been worth it.