As long as all of your connectors are still in place, and there aren't any fans being blocked, you should be fine running it on it's side.
However, like Umbongo said above, the old G5's (and some with liquid cooling), may have an issue with running sideways.