I don't understand what you're weighing this against? A job that is literally saving lives maybe, or really leading in a field of science or technology?
Most of us don't have that though, even here on hacker news. Most of us are part of a larger effort that will progress just as well without us, our personal impact is marginal at best.
I've worked in tech for two decades for a company I deem "moral" and I feel I've had impact. But I could have fitted kitchens or made wedding cakes for that time and had just as positive an impact on the world and people I serve professionally. Hell, if I was a carpenter my work could probably outlast anything I've done in tech.