Well in terms of Marx and Engels they were writing and theorizing long before the Origin of Species. In fact Marx quite liked the idea of Evolution, feeling it fit well with his conception of systems changing depending on various pressures and forces on amd within them