Generally most plants are safe as long as they are free from pesticides and chemical contaminants. I always rinse my plants well before adding to a vivarium. Some emergent aquatic plants can carry snails though. And you don’t want snails in a vivarium.