Not all companies are the same. Sure, all companies exist to make money for shareholders, but some companies make cigarettes while other companies make life saving drugs. So, yes, it does make sense to take the company's mission into account when deciding whether to work there or not