A selfish character in any story isn't necessarily a villain. It can be a character that has yet to go through their whole story arc, for example, or perhaps someone who is making an honest mistake about their priorities. The world of Star Trek is full of nuanced characters who can be described as self-absorbed, egotistical, or selfish, and some of them have sympathetic motives while others do not.