Yes. I just tested and its working for me. Is it possible you aren’t dividing the distance by enough to make it visible?
The quickest way to check if its working is to make “distance to nearest surface” goto emissive, then view in unlit and throw a giant cube on the landscape. Select the cube and find the property “render in main pass” and set it to FALSE. That way you can be sure you are seeing the black area inside the cube. Normally when you hide a mesh it will also hide the distance field so it can be tricky to debug sometimes. And of course if you dont see anything, visualize the mesh distance fields to make sure your cube shows up at all there.