In theory yes and I have considered doing a longer vs shorter resized brass myth busting thread but as pointed out by other members, with reloading/shooting variables that will be in play, I am not sure if we could isolate the variable of case length alone to stand out to make a successful myth busting thread.
In actuality, longer cases headspace off case mouth and shorter cases loaded to same OAL/COL will start to headspace off extractor (Imagine bullet nose/case mouth dangling in the air away from chamber
).
When primer flash ignites powder charge (For magazine fed semi-autos, powder charge will be tossed "powder forward" when chambered), burning gas will expand case neck and case mouth sealing against chamber wall. If longer case mouth is in contact with chamber, sealing of gas will be quicker but shorter case will be pushed back against breech wall face and more gas will leak around the case mouth/neck before sealing with chamber wall.
So based on this, longer cases should produce more consistent chamber pressure build, which will produce more consistent maximum pressures for more consistent muzzle velocities in terms of SD/ES ... ultimately leading to smaller groups on target. BUT, will this variable be large enough to overshadow other reloading and shooting variables to show on target? As Walkalong and Blue68f100 pointed out, we may not be "good enough" to show the difference.
I can certainly choose the longest and shortest resized cases to see if I can produce difference on paper (I probably could produce smaller groups with longer cases) but since I do not trim straight wall semi-auto pistol cases nor sort by resized case lengths (Like most reloaders here on THR), I will default back to checking neck tension of finished rounds by measuring bullet setback after being fed/chambered from the magazine (Which IMO carries far greater reloading variable to overshadow other reloading/shooting variables to matter on group size).
Sometimes, an OCD reloader must know his limitations.
So I will tip my hat that if you got to where you have isolated and eliminated enough reloading and shooting variables to see difference from resized 9mm case lengths; sure, go ahead and sort by longest resized case lengths but by all means, do not trim 9mm brass.