Can I exercise?

Yes. Exercise is the best kind of work out. An ICD isn't implanted to limit you - it's to save your life.   Just make sure to ask your doctor how long you need to recover after surgery.