Some people recommend putting the Military Academy in the capital, regardless of whether it is the best-producing city or not, if they want to pre-build wonders or spaceship parts. Other cities can use the Palace as a pre-build, but the capital cannot. If there is a need for lots of armies, I would definitely put it in the best-producing city, so you can get armies out there as soon as possible.