Yes. Tiny little fungi do grow on cow dung. What happens after a while is they germinate and sort of explode and launch a spore into the air. This will land somewhere else and new mushrooms will grow.
Yes, mushrooms will grow in cow dung too. But that will not be an edible one. The mushrooms that grow in cow dung will be a black color and it is poisonous.