Not quite. This behavior leads to firing of middle-class workers. John Deere just laid off 300 workers, moved the factory to Mexico, engaged in buyback, and gave the CEO a huge pay.
So, yeah, it helps your 401k, but in the mean time you don't have a job. And if you do have a job, your salary is not increasing in line with inflation...
I recently learned that buybacks and short selling historically have not been legal, its only in recent history that they've been standard practice en large (1982 is when buybacks were legalized, I think)
It’s part of Reaganomics. Buybacks weren’t explicitly illegal beforehand though, it just wasn’t clear when they would count as stock price manipulation.