Sociologists study the impact religion has on child development. Do children raised by religious parents have better social and psychological development than those raised in non-religious homes? In a new study, researchers found that religion can be a mixed blessing for children as they get older. Source 2h.
It really just depends on the situation and the person. Some say religion is used as a coping mechanism and others say it's more than just that since it has morals to help child development. In my opinion, religion is really just a system of man based on a specific view on the purpose of life, that's really what it is.