Indeed.  At the individual level, also in science, and in policy, much of life is a reiterative process: analyzing what worked, what did not work, and making adjustments to test a variety of theories regarding why something worked or did not work... which may lead to success on a future attempt. 
Famous saying: 
If at first you don't succeed, try, try again.There are many lists encouraging perseverance after setbacks, rejection, failure.  For example, 
FailureBeforeSuccess.comSomewhat similar, Carol Dweck's book, 
mindset, encourages overcoming a fixed mindset and developing a growth mindset approach to problem solving.