Depends on your worldview. Historically, companies had a purpose first and profit second. You needed approval by the crown before you were allowed to start a company. Then, once your company fit the purpose as seen by the crown, you were allowed to make profit with it.
That has changed, especially since the 80s, where the prevalent world view turned to "let's have the market figure out purpose", which equates to anything that is profitable is good.
We've since learned that this isn't automatically true (as exemplified in this abandoned merger, for example), and my understanding is that right now there's no clear opinion in society whether profit or purpose comes first in companies.
When there are elected officials who say that maybe capitalism is more important than democracy, it becomes clear that consensus is going to be difficult to achieve.
That has changed, especially since the 80s, where the prevalent world view turned to "let's have the market figure out purpose", which equates to anything that is profitable is good.
We've since learned that this isn't automatically true (as exemplified in this abandoned merger, for example), and my understanding is that right now there's no clear opinion in society whether profit or purpose comes first in companies.