Rotating viewport camera

The camera can rotate its angle on the floor but can it be done when the camera is pointing upward?