YES. It did in my case. Like any child, I was curious who needed answers for questions. As I got involved into watching space, I became more interested, I never felt any special connection to god ergo it didn't bother me if I said, "god didn't created us, evolution has the answers." The stories of god I was being told were fun and fascinating but not believable. There was a point in my life, in fourth grade, when I asked my teacher, "how was the moon created?" she answered, "god made it." It bothered me that she didn't gave me a definite answer and why gave such an explanation, as if she put off my curiosity on hold.
I questioned the existence of god more as I grew older and nobody liked it, they said I wasn't supposed to ask such things and that it was sinful. This was really upsetting and it is probably the major reason that why I drifted away from religion.
While never a believer, I have two thoughts on this:
i) My belief through much of my life is that one of the major benefits certain religions was to limit the ability to ask 'why?' for people who cannot spend all day standing around asking 'why?'. We have lots of liesure time to stop and ponder these days, but much of human existence probably involved a lot more toiling to ensure survival. Getting hung up on what the purpose of life is, or what happens after we die could very well be problematic if it becomes depressing or obsessive.
ii) My passion in pursuing science also took a dive at one point in my life. I mostly just found the school system limiting and it crushed a lot of my natural urge to explore. Some of it may have been due to age as well. Once I was out of school, my urger to learn and explore rose considerably again. So, even without belief in a god, I may have had similar experiences.