That’s exactly right. In fact, they legally have to do what they think will be good for the investors/ stock holders.
It’s one of the reasons why Valve has managed to be a loved company for decades. It’s a private company, so they don’t have to answer for monetarily poor decisions and are free to do what they’d like. It also means things could change if management changes hands.