Yes, it doesn't make someone pragmatic/not evil/etc by default. However, it
can be used as a means to make them so. Take Snape from the Harry Potter series for example. He's considered a 'good guy' despite having murdered Dumbledore in cold blood, watched on as Voldemort tortured and murdered people, participated in said torture, and numerous other misdeeds. The reason for this is because he did so in order to maintain his cover as a spy and thereby continue to ultimately undermine Voldemort. Take that motivation away and he would be a villain. Moreover, he would become a much, much flatter character since it raises and subsequently explores the question of what made him turn double agent in the first place.