Yes.
Modern powders in shotshells - probably reach a complete burn within the first 12 - 15" of the barrel...../ so whatever barrel length gives you the sight plane you want /and the swing characteristics.
The receiver area on a pump or semi-auto is longer than an Over Under receiver....so an O/U with a 30" barrel is about the same overall length as a pump gun/semi-auto with a 28" barrel...
----------
For sports or birds where you have a lot of left to right shots ( skeet, sporting clays )....if I go with a gun around 8 lbs - 8.5 lbs....I like that 30" O/U ...../ but if I go to a really light gun down around 7 lbs ....I go 2" longer on the barrel, so it helps me smooth out the swing with a lighter gun ( or the light gun gets real "whippy" ) to me and I slap at targets vs executing a smooth shot.
So a light semi-auto like Benelli super sport --- at 7.2 lbs in a 12ga ...I go with a 30" barrel....because its light. I will sometimes even add 1 lb to the Benelli - just to bump the weight a little ( 8 oz under forend / 8 oz inside the stock)..
My standard O/U's are all Browning Citori XS Skeet models with 30" barrels, and right at 8.5 lbs ....in 12ga, 20ga, 28ga and .410...
----------
but my buddy who is about 5'10" and 175 lbs....likes his O/U's with 26" barrels...and he likes them heavier, up around 10 lbs...for Skeet.
----------
So you have to figure out what works for you ....