Cortes was an opportunistic lawyer/notary he had no military experience before the conquest of Mexico and I’m not sure there is any evidence that he had any military education.
I think you are missing the point entirely, I am saying that there is a thing called collective military knowledge, The Spanish had experience in fighting wars for many years. This knowledge of tactics and techniques is passed on through training.