I would say you're OK if the wall tapers from 1:1 at the front of the chamber down to 25% of bore at the muzzle, but you don't want any part so thin that it is not sufficiently strong enough to resist ordinary bumps and bangs.
And don't take this as allowing the use of water pipe for any cannon barrel parts. It is not strong enough.