They are indeed-forms like Sonata Allegro, Rondo, etc. are part of the Classical Music Tradition. Most Music programs have a Styles and Analysis Class at least where these are outlined. When you study Counterpoint (as in Bach) there are certain harmonic rules that are followed in the composition as well as certain norms of form.
Yep, I have learned that in a Analysis class. You learn the rules of a Sonata, Rondo, Counterpoint, Fugue and others rules like no octave or 5th movement ( it is harder that it sound because nowaday we are so used to have octave and 5th run ... ). Also stuff like II7, V7, I7 or others harmonic mouvement are studied but in classical world those mouvement are at the end not the harmonic background like in other music style.