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.