Does an ICD have a pacemaker built into it?

Yes. These days you get twice the technology–both pacemaker and defibrillator–in one neat little titanium package.