Would an undamaged Yorktown have made Midway much safer for the United States?
Short answerMidway's historical result was highly contingent; even with Yorktown, many simulation outcomes involve heavy losses, mutual destruction, or no decisive contact.
NotesGames and simulations make Midway's historical result look unusually difficult to reproduce. Some runs end without either side finding the other, while others produce a decisive strike by one fleet or the destruction of both carrier forces. An undamaged Yorktown might have retained enough speed to improve her chances against the torpedo attack. Even so, scouting, timing, and strike coordination leave a wide range of plausible outcomes.