Most definitely and unequivocally YES!
My dad (was a lawyer) taught me the basics of electricity using our Marx trains to illustrate how an electrical switch (knife-type!) worked, how the different taps of our transformer made the train go slow or fast, and use a rheostat to further control the speed from any of the taps, and many other things electrical. He started showing me this when I was around four years old.
Shortly after, he made a circuit using relays so my older brother wouldn’t be able to crash his train onto mine at the one crossing we had. That was the first example of automation I saw.
By the time I was seven I had my own (small) layout with switches (all knife-type) for lights and to control track blocks. I could also wire my friends trains, and make their accessories work. We did not have enough money to buy accessories (my dad was an excellent lawyer and highly respected, but he was rather ‘poor' money-wise) so I built many working accessories with my No. 7-1/2 Erector Set.
Eventually, I became a EE, and worked in industry designing machines (mechanical and electrical design) and eventually specialized in automation using microprocessor and computer controls. I was awarded nine patents in a short span, the promotions started, I got into management, and the real engineering fun started to dwindle. There isn't much time for hands-on engineering when you are a VP, General Manager, or President of a company.
I retired almost a year ago, but have continued doing small engineering projects and teaching, which is my favorite thing to do. Today my trains are my primary engineering occupation.
Yes, trains made me do it!
Alex