Actually you don’t have to have fully closed and sealed geometry. All depends on what you do.
Here I did simple meshing test where I presented the general idea (I used surface model):
As you can see it’s all about the gap and mesh element sizes. However, as @psosnowski wrote, it’s highly recommended to have solid geometry (!). Otherwise you ask for trouble