I don't think religion started out as a scam. I'm pretty sure the intentions were good, but, like all things when power comes into play, new ambitions become realized and a once good thing becomes corrupted.
Of course the Bible is simply a collection of allegories to explain things. Even though it should be taken with a grain of salt, there is a lot to learn in there, like with all religious texts.