Yes, it was Oates. He sacrificed himself because he was very lame and had been holding them up. The rest of them died later, perhaps because they refused to leave Scott when he in turn became ill.
I read that if they'd gone another couple of hundred yards a day, they'd have made it back...