Yes, you can rotate buildings in Age of Mythology — but not out of the box. You'll need a mod.
The best-known source for both the mod and everything else Age of Mythology-related is Age of Mythology Heaven, which has hosted the community's downloads for two decades. Look for the Rotate Building Mod on its download page, then follow the included instructions to drop the files into the right folder.
Back up your game directory before installing, and note that the site's older download links occasionally need the URL pasted manually into your browser's address bar.