At a bare minimum make sure you check and adjust the pH, but yes it can be done.
The main issue is that the water in the dehumidifier is a potential carrier of anything that was in the air at your home. Just be mindful that you aren't creating a transport mechanism for mold or bacterial spores and your plants won't mind.
If you're concerned about it the water can be used for ornamental plants rather than edible ones.
A good moss pic is a straight dopamine hit. What a badass place!