Darwin’s theories certainly influenced Freud.
Until the 1920s or possibly even 1930s, Darwins and Freuds theories were subject to roughly the same degree of “approval” (note the quotes).
In both cases, questions were asked whether their rather big picture explanations could ever be tested properly ( scientifically), or whether they were even necessary for the conduct of empirical work in, respectively, biology and psychology.
However, by the 1940s, Darwins theory had come to be embraced by leading biologists (outside the USSR and possibly France) as providing a valid explanatory framework. Why Darwin managed to achieve that status, while Freud never did is the interesting comparative question to ask.
Cheers!