Does a pacemaker use electromagnetic waves?

It uses electricity. It uses electricity from a battery.
Pacemaker. A pacemaker has a sensing and pacing function. The sensing is like a radio receiver to read the electrical activity of the heart. When the heart is too slow the pacemaker delivers electrical stimulation to heart muscle through the lead(s) which also act as an antenna for the sensing function.