Sure science involves trial and error. Scientists refine theories each day. But as they do they help us grasp more clearly the wonders of the world and the universe.
I have many times thought I did the wrong thing but the reason was not to be a medical doctor - it was just to have the information. But then maybe I was wrong I don't know.