Well, in humans exactly as you describe,so presumably the same in goats.
It may go on it's own, may not cause any problems but if a bit of gut comes through and twists or swells and gets trapped and causes a blockage it would be serious. I'd just keep an eye on it for a while and see what happens.
I assume she's pooing alright.