Sure it is. Google for example increased headcount by 24% in a year and cut it 6% in the next year, a clear sign they made a bad decision.
Further in Google’s case they have plenty of money to pay these people until headcount naturally shrinks, but they don’t have anything useful enough for them to do that waiting and avoiding a large severance package is cheaper.
I just do not believe in a worldview where almost all CEOs of large tech companies are incompetent. Whatever the explanation for layoffs is, incompetence ain't it.
Greed would still try and avoid the need for a layoff because they are quite expensive. Google’s 6+ weeks salary + 6 months health insurance isn’t cheap.