That may be a possibility with regular mass layoffs, because it indicates a company in trouble.
However, that’s probably not the case for companies that were laying off people earlier this year despite making record profits (I think most people understood that many of the more profitable companies had overhired over the pandemic) and unlikely to be a driver in RTO driven “layoffs” since they’re not layoffs in the first place and say nothing about employees job security.
RTO driven “layoffs” would be the people who don’t live near the office.