Is maximizing stock price the same thing as maximizing profit?

No. The stock price depends upon what investors are willing to pay for it. The profit is the money the company makes on its products.