For peeing, anyway, yes! They’re very clean animals! I didn’t even have to actually train mine; they just used theirs on their own!
For poop, well…they just go wherever. But they also need to re-eat it, so I suppose it makes sense. And they’re more like hard, round balls, so it’s easy to clean up when needed.