Yes, and they are pretty cool to also look at. You mostly would want to have some sort of macro and micro nutrient elements (such as having soil as the substrate, or by dosing with fertilizers).
This is what a lot of people do when they make tanks that are sealed but allow for light to enter in.