As said above, yes you can alter the screen position via the Tab key options when a game is running. But there's another way.
If you are using MAME32 or similar, there should be a setting in options where you can designate "rotate screen" - look in Preferences or Options for this. It will only affect specific games.
Tell us if it works.