Yes, learn from your mistakes. No, don't actively go in the wrong direction.
Now you're talking about if you need to consider any moral implications of the activity you're undertaking, which is a whole different discussion.
Obviously if it's a horrible moral choice (i.e. Hitler) then sure, it's best if nothing is done.
In the very vast majority of cases ( build a better car, spaceship, software, grow better food, get fitter, learn a new language, help our community, be a better friend, etc. etc.), then doing something is much, much preferable to not even trying.
"Morality (noun): principles concerning the distinction between right and wrong or good and bad behavior."
I encourage you to think more deeply about your argument. I struggle to agree that the "very vast majority of cases" are positive.
It sounds to me like you are sensitive to apathy and/or nihilism. I can understand that, especially these days, but just because it feels like nothing is being done doesn't mean things can't get worse.
Sorry, I'm a bit of a cynic these days.
I disagree strongly.
Progress in the wrong direction still teaches you things, and it means you're moving and you've overcome the inertia of doing nothing, which is half the battle.
Failure isn't trying and not reaching your goal. Failure is never trying.