No, this is a "Marx quote" describing the greed of capitalists in pursuing profits. This sentence appears in Marx's "Das Kapital", but it was not said by Marx, but by Dunninger (various The name in the translation may be different) was written in "Trade Unions and Strikes" and was only quoted by Marx.
The original sentence of this famous saying is: "As soon as there is an appropriate profit, capital will be very bold. As long as there is 10% profit, it will be used everywhere; if there is 20%, it will be active." If it is 50%, it will lead to active risk-taking; if it is 100%, it will make people disregard all laws; if it is 300%, it will make people not afraid of committing crimes, and even not afraid of the danger of hanging.”
This passage nakedly reveals the greed of capitalism and the bloody and dirty process of capital accumulation.