Yes, you can extend the pipe horizontally. It needs little orno slope since the water will carry to the trap. However, ifyou're going to dig out enough to replace the vertical pipe withan elbow, you may as well just move the trap to below the drain incase you ever have to replace it again.Brian