Hi there, welcome to BYC!
I have done that
for chicks (to keep rats from tunneling in as aprons won't help when they're coming from down under & rabbits from tunneling out).. if there is any traffic the grass
quickly disappears (due to eating, trampling, and also the excess nitrogen and build up of fresh droppings). I kept a thick layer of hay/shavings/or other mulch on top.
While I never personally had any issues.. Those hutches are long gone and wire dug out.. I'm sure the concern from other posters is valid. My grown chickens can dig holes a foot deep or more, given enough time.
How big is your enclosure? What are you housing? And what are trying to achieve? Pics welcome.