in general, yes (natural selection is amazing), but the knowledge in this case has been readily available for literally decades but not applied appropriately.
organisms have evolved over billions of years to take advantage of passive dynamics, which is basically the application of newtonian physics to what is mostly a mechanical design problem. we've known for a long time that passive dynamic elements are not only energetically more efficient, but also makes computations simpler.
by contrast, active dynamic locomotion is akin to putting a joint between the front fork of a bike and the shaft, and installing a hand pump that you have to constantly actuate to keep the bike stable while you're riding it. you could do it, but it's not the best solution.