A pool pump can be installed at any distance from the pool within reason. As you increase the piping distance between the pump and and pool you will be increasing the resistance to the flow rate and increasing the total dynamic head. This means that you will require more water pressure and a higher horsepower pump the further away from the pool you locate the pump.