Sure. Either way. The wax ring seals the toilet to the closet flange so it doesn't really matter that much. The important part is that the toilet be mounted firmly to the floor so that it doesn't move. That would cause the wax ring to fail then the toilet would leak around the flange.