During denoising sequences that differ solely by variation in length will be grouped together. Pure length variation is not part of the error model.
However, quality control that introduces artefactual length variation (e.g. by trimming when quality drops below some threshold) does tend to reduce the sensitivity of denoising, and thus is not recommended. Instead truncating at a fixed length cutoff is typically the better approach.