Not necessarily. Generally, the purpose of a corporation is, in fact, to maximize shareholder wealth, but all a corporation is supposed to do is to represent the interests of the shareholders, which do not have to be financially motivated.
In theory, corporations are not solely profit-seeking. In practice, they tend to be.