Sort of... but depends on your setup!
I have found that with proper drainage it will grow very well (generally add a little sand to your mixture of soil) but the biggest limiting factor is the availability of good light! Most enclosures will not have enough light of the right spectrum to really get grass growing and as a result, people see growth for a week, then it just dies.
Grass needs a LOT of very good light to thrive and in most enclosures, the source is poor and heavily obstructed by other plants and just general 'clutter' in the enclosure.
You're better off looking at low light plants/mosses/carpet plants/creepers that would suit your enclosure if you're after something like this. I have found in general that growing plants is hard work with the exception of pothos (devils ivy) which will grow at incredible rates just about anywhere!