You can change an oil pump with the engine in the car, but i wouldn't recommend it. You have to lift the motor off it's mounts to remove the oil pan. If you are that far along, you might as well remove the motor and make it easy on yourself so you can do a good job sealing the oil pan.