not really. They dig burrows and live in them. What is your substrate? They need a mixture of sand and crushed coral from what I have read. Do you have your rocks fully secure? If not they can dig and then the rock can fall over. Crack your tank or kill fish.
I found my jawfish like that once. I think he may have 'jumped' and been lucky enough to not land on the carpet. After many repeated attempts he eventually did.