Sagan may not have believed in the God of the Bible, but he at least allowed the possibility of a creator.
Or did he? Carl was no more obliged to believe what he wrote in his sole work of fiction than George Lucas was required to believe in the Force.