Sexual activity after a heart attack is generally considered safe. Also, the feelings of intimacy and love that accompany healthy sex can help counteract depression.