Yes, although other things can happen under capitalism, such as hostile takeovers, which is what's happened to Twitter.
Twitter's banning of Trump triggered Musk's buyout and self-destruction of Twitter. Musk doesn't seem to care about the amount of money he's losing on this deal; it appears he did it purely out of spite and revenge over Twitter banning Trump.
From a purely capitalistic point of view, the banning of Trump may have caused worse damage to Twitter than if they had not banned him at all. If, as you say, it's just about money, then it appears that the former leadership of Twitter made an incredibly bad and short-sighted decision which led to their company's demise. Does that sound like a wise business decision? Do they think it was worth it?