Absolutely. Remember, someone's getting paid for your work, for the value you create. If not you, then who? What're they creating?
If you're trying to make a social justice argument about capitalism as an economic model, that isn't relevant.
If you think the investors losses are more damaging to the market as a whole I still disagree. The employee was likely injecting most of their income right back into the economy. An investor is probably just buying stock from other stock holders (much safer way to make money than a business venture). Unless the stock holder is the company, this is just money changing hands between rich people, i.e. zero gain for the economy.