Are starting pitchers required to pitch any certain number of innings before they can be credited with a win?

A starting pitcher must complete five innings in order to be credited with a win.