Yes! That’s the argument in a new Historical Biology paper called “A Call to Search for Fossilized Gastric Pellets.” Here’s the abstract:
Numerous extant carnivorous, piscivorous and insectivorous species – including birds, pinnipeds, varanid lizards and crocodiles and mammals – routinely ingest food combined with a high proportion of indigestible material that can be neither absorbed through digestion nor eliminated as faecal matter. Their solution is to egest the indigestible portion through the mouth as a gastric pellet. The status of gastric pellets in extant species is reviewed. Arguments based on phylogeny, anatomy and biomechanics strongly suggest that many extinct species, including crocodilians and pterosaurs, may also have produced gastric pellets routinely.