The battle of Midway could have gone the other way, but was not meant to. If the Doolittle Raid did not take place Japan would have been able to devote more attention to her Asian conquests as well.
It seems with Midway, the Japanese got a little careless, tipping their hand with communications on what their target was, not knowing we had cracked their code.