The Gelatinous Cubes? Yeah, as creatures those shouldn't be able to go through normal blocks, which includes glass
It is possible there might be special cases later. Like a Gelatinous Cube might be able to through a fence by just sort of squishing through it.