This is very true, although one minor nitpick is that you should say "formal written rules" for grammar. The rules appear in fact appear to be more formal and consistent in the centuries before Panini, and the need to write them down (including the aforementioned sandhi rules) was partially due to inconsistencies derived from the evolution of the language.