You shouldn't have any problem at all (other than looking weird). I could drop my G23 barrel in my G27 just the same way as you've suggested. I'm talking stock Glock barrels here. I wouldn't be so sure with aftermarket barrels, but if they say 'drop-in' fit then they should be good as well.