Some Spartans escaped, though. One of the Halo books (First Strike? Or maybe it was The Fall of Reach?) explains how some of the Spartans managed to get off-planet.