yes religion and psychology come from the same place. they come from wondering about the subject. the subject is that part of the human experience of the world, which has not jet been objectified. we have just objectified our body and maybe some math skills. so the rest, the unobjectified, the subject is most of our monkeymind, psyche and soul and god, also much aspects of our interactions, partnerships and love-life. for instance, by definition, no typical person has objectified his so called super-ego. but we have myths about all that stuff. some of which were created from interpretations of external observations. some of which come from states of intuition, introspection in very bright moments.
understand this pre-trans fallacy, though....:
myths were invented on low stages of development. they were descriptive of the world at that time. at the time they were taken as literally true. now we think we are smart and interpret them from a rational level, or a transnational level. we claim they are "just" metaphors for human live (as we know/see it). but that is often nonsense. we would have to look at the actual rational and trans rational levels and invent new myths (or methaphors). the original myths tell nothing about the rational or trans rational world we live in, because when they were envisioned by wise men, all of the structures of modern man's psyche and culture did not even exist yet. they can not be reinterpreted and applied to the modern world. they just are what they are. they could be applied to the world of a kindergarten to some degree. now, there are few exceptions: few of the myths are not about the relative world, but about the Absolute world. they still hold merit and can be reinterpreted from any level. but most are not like that. so, bottom line is: we can not create a new religion or philosophy that "learns" from the old, by merely reinterpreting. naturally we learn something by knowing where we came from, but for the most part, we need to be inventive/visionary to understand present and future.