You certainly can, scrubbers in the suits filter out carbon dioxide and hydrogen sulfide. I literally just finished Mary Roach’s excellent Gulp, dealing with everything along the alimentary duct.
Also: http://io9.gizmodo.com/5876281/most-important-scientific-study-ever-what-about-farting-astronauts