Usually, but it can be given to the pitcher (except the starter) who was considered the most effective by the official scorekeeper.
My son actually entered a AAA game in the second inning with a 6 run lead. He pitched 2.2 innings giving up one run. They gave the win to a pitcher who threw 1.2 perfect innings. I really didn't agree at the time, but that's the way it goes.