True, but it's not a requirement.
Anyway. I got into coding by making programs on my TI-83+ graphing calculator. I made a few programs, and thought, "Hey, this is kinda fun, I'll see if there are any programming classes offered at my high school". There were 3. I took them all senior year. 2 Java classes and a VB6 class. Changed my life. If I wouldn't have taken those classes, I never would have found DIC, or declared my major as Computer Science. I'd probably be a music major of some sort.