Correct, it’s effectively the moral hazard problem. Where executives capture the upside (of short term gains in stock) and pass on the risk to future execs/shareholders.
Very difficult to align long term incentives unfortunately, unless the company is founder led.