For realism sake. No. This is not a realistic idea and people have tried and failed catastrophically attempting this.
For fantasy? Sure awesome!
Just note. If the barrel gets bent even slightly. It turns into an explosive device that kills the user. Youtube a bent shotgun and …wait I’ll go get that for you…
Here is a few extras in there for the grins. I’d perhaps be checking literally every bullet/cartridge till I was less paranoid lol