After defeating Cell, they revived all his victims using Shenron. But Shenron could not revive Goku, as he already revived once. Then, Goku contacted them using King Kai's telepathy and asked them not to revive him.
The question is, would it have been possible to revive him somehow (at that point of the story) if he were not against it?