Yes, but this is rarely necessary since pacemakers and defibrillators  monitor heart rhythm.