It depends. A struggling company that needs to reduce workforce to survive? No. A company worth trillions laying off en-mass because stock rates are down? Yes, probably.
Is the argument against layoffs purely based on the stock market value of the company ? That sounds very reductive