It's perfectly fine.
I use mainly oak leafs and catappa leafs as leaflitter in my vivs.
They grow a little mold over time, but i guess in nature it won't be any different.
If you put some springtails and/or woodlice in your viv, they will thrive in a nice layer of leaflitter, eating some of the mold as well.