What you're talking about is the distribution of funds within an organization. I.e. if company X has a certain total revenue, can they afford to re-distribute a greater percentage of that number & towards employee compensation vs. stock buybacks. From that standpoint, for many successful firms the answer is probably yes.
But another factor at play here is market forces, and scarcity in particular. So for instance, amidst the chip shortage, the price of new and used cars increases because it's not possible to produce enough cars to meet demand. So firms that can afford to pay more do so to afford top talent, because working at company X will mean you can afford to have the lifestyle you want. This incentivizes company Y, which can not simply redistribute profits toward wages, to increase prices so they can afford to compete in the labour market, which farther contributes to the increase in demand for higher-wage jobs, contributing to the cycle of inflation.
So I don't think it's as simple as having super profitable companies take a haircut to increase wages. In an environment of greater-than-average scarcity, the market should perform its role in price discovery of scarce goods. But in an environment where capital itself is not scarce, you risk that price discovery mechanism being broken, and prices just increasing indefinitely.
Disclaimer: I'm not an economist, I'm just someone who's been thinking about inflation a lot lately, so I am happy to be corrected.