It’s perfectly possible to even go swimming with a stoma. What you do need to do is to cover up the stoma with gauze and put a waterproof dressing on top of it. And then you can go swimming.
The intestines will fuse to the skin, we actually stitch it down. So once that is fused, we get essentially a waterproof joint. And unfortunately, you can’t control how the motion comes out which is why you do need to put a dressing over it to prevent the faeces from coming out during the duration that you’re swimming. But by large, yes you can go swimming.