Messy Anal?

Hey so I have never tried anal but want to, though I have read a lot of ‘horror’ stories about people getting fecal matter everywhere because of it. Is there a sway to prevent that?