No, git is clever enough that when you merge branches it does not re-apply patches that founds are already applied.
You can try that with rebasing the branch with the commit from where you cherry-picked it (your branch-Z) into the branch you cherry-picked it (branch-X).