No, it is not :) This is copy+paste from flanger's code, and there are check in SampleUtil::copyWithGain
    if (pDest == pSrc) {
        return applyGain(pDest, gain, iNumSamples);
    }

void SampleUtil::applyGain(CSAMPLE* pBuffer,
                           CSAMPLE gain, int iNumSamples) {
    if (gain == 1.0f)
        return;

Also this line of code is everywhere in project :)