By investing in publicly traded stock, you’re purchasing part ownership of the means of production and making profits off someone else’s labor. I don’t see how you can even justify owning small amounts of stocks when it contributes to such awful things on a massive scale.
To be your only point of income where you essentially become a member of the VC/Investment class? Yeah not great.
To like make a little extra money so that you can retire someday or struggle a little less to survive? Who cares.