Is "God" mostly a rhetorical tool for society?

The concept of "God" may actually serve a low-level social function above all else. It's to answer so called "shit test...