Leaving Yum Kaax, my Treecko M to learn Dragon Dance

Paid here

Stupid question, you say on the first page that if Pokemon could learn a move any of its evolutions could learn it too

So since Typhlosion can learn Sacred Fire, could I leave my Cyndaquil here to learn it or he has to evolve first?