Is it always wrong to perform futile CPR?

Is it always wrong to perform futile CPR?