Yes and no. That would mainly be the choke. I mean, a barrel that is 10" shorter is going to start spreading 10" sooner, but it has nothing to do with the actual pattern when judging distance from the barrel.
18" is manly for ease of manuverablity, weight, and a bit easier to "point and shoot"