no, its also a way to set ethics, back then people didnt have secular philosophies like those developed during the age of enlightenment or oriental ones to tell them what to do, religion was a good way to resolve the anxiety of not knowing what to do of your life (it still is for a lot of religious persons)