I'm sure some CEOs followed the Twitter lead, but I also think the entire industry was already shifting with regards to headcount. A lot of companies were hiring excessively going into that period and middle management bloat was a well-known phenomenon.
The overstaffing problem was painfully obvious at many of the companies I spoke too as a consultant during that time. They'd have bizarre situations where they'd have dozens of product managers, project managers, program managers, UX designers, and every other title but barely a handful of engineers. It was just a big gridlock of managers holding meetings all day.
One friend resigned from Twitter prior to anything Elon related, specifically citing the fact that it paid well but it was impossible to get anything done. Not all of Twitter was like this, but he was outside of engineering where he was one of scores of people with his same title all competing to work on tiny features for the site or app.
The pendulum seems to be swinging to the other direction, where companies are trying to do too much with too few people. I still see a lot of growing (or shrinking) pains where companies are cutting in the wrong places, like laying off engineers to the point of having more people with {product,project,program}-manager titles combined than engineers. I hope we settle out somewhere more reasonable soon.