Definitely not. I've been exposed to the rationale for these. Profit and effectiveness have nothing to do with it. CEOs put them in place because otherwise left wing employees or board members will try and destroy them, and Democrat-run regulators will support them in that goal even if it means breaking the rules. There have been many examples of such things in action - look at the organized cartel-like boycotts of X after Musk upset left wing marketing execs.
CEOs don't want that to happen to them. That's why this is happening now, the moment Trump won a major victory. The fact that the left has lost power comprehensively makes it safer to stand up for what Zuckerberg believed in all along.
Bet Bezos has spent years dreaming of making that Melania documentary he's finally become free to spend $40m on too...
The companies we're talking about have DEI programs specifically because they believe they'll improve their profitability in one way or another. Meta is scaling their program back, not ending it, so they still believe it's good for the company in some way.
Now, I may be skeptical of the purity of their goals, in this case suspecting that they're more concerned about looking to be the "right level" of diverse than actually achieving it. Regardless, no one's making them do it. They're doing it for those free market reasons.