Only if your goal is short-term profits, and not long term sustainability.
Stock prices are the market's estimate of the company's long running prospects.
Management has a fiduciary duty to shareholders. Stock price isn't everything, but it's still prima facie evidence of what shareholders want.
That tells you that companies have far too few mass layoffs.