Can a defibrillator be used on a patient with a pacemaker?

Yes. The pads should not be positioned over the pacemaker. Some defibrillators feature a pacemaker detector.