No, religion is not essential, but society does need an organizing principle of some kind, an overarching idea, be it religion, or some other idea, code, or organizational group.