I shifted pretty gradually (from elementary school to high school) from being mostly interested in biology to mostly interested in coding (and later to math and computer science). I don't think I really thought of software as a career until 6th or 7th grade. By 9th or 10th, I wasn't really thinking much about biology any more (though I still had enough interest to enjoy biology class junior year), and I was starting to be exposed to computer science.