I think there is a significant dispute among scientists whether evolution has a direction or not. I found this interesting discussion of the issue by philosopher of science a Michael Ruse.
https://www.bigquestionsonline.com/2017/01/26/does-evolution-have-direction/