Barrel length does make a difference in the velocity of a projectile, because the longer the barrel the more time the powder has to burn. As to how much difference it makes that depends on the caliber, powder, and the barrel length.
"It's a gun you loaded on Sunday, and shot all week."
"If God didn't create man equal then Sam Colt had made them equal."
"Fast is fine, but accuracy is everything."