If the gate valves are closed, there's no connection. If open, and if you also have a twist-on external gate valve at the sewer outlet, water will run from one to another. But they may or may not be at the same height - varies by model and floor plan.