Can I play tennis?

Yes, but you may have some restrictions on stretching out your arm for a few weeks after ICD surgery. And, as you might know, a full extension is the secret to a strong serve. Just be sure you're fully recovered before you hit the court.