The oil pump is made of two separate sides, one scavenges oil from the dry sump back to the oil tank. This side does not depend on gravity.
The other side is the one that provides oil pressure to all the engine internals, this side is fed by gravity from the oil tank. It has no provision to scavenge oil, so like Cougar said unless your oil tank is above the oil pump it will run dry.