Do you think that workers have a right to the fruits of their labor (i.e., the value created), or is it morally permissible to have capitalists (i.e., investors, say, in the stock market), extracting profit from their investments?

Do you think that workers have a right to the fruits of their labor (i.e., the value created), or is it morally permissible to have capitalists (i.e., investors, say, in the stock market), extracting profit from their investments?