Yes! Most mammals fart. Elephants are notorious for it, and it’s not helped by the fact that - in zoos - keepers sometimes combine their food with garlic and rice to help their digestion.