The short answer: Yes!
You can plant and use an UGF. The limitations on this kind of filter is that any plants you use will either need to be potted or floating/rooted to wood or rocks. You can still create a beautiful planted tank with an UGF if you utilize plants like anubias, java fern, all the mosses, and many crypts. You can use small pots for bunches of stem plants if needed, or basically any plant that does not need an excessively large root system. The pots you use should be the type commonly seen in potted aquatic plants (very large holes for flow, and planted in fibre)
You shouldn't plant in pots without any drainage, and as such you will not be able to use sand or fine grained gravels.
The use of floating plants(frogbit, red root floater, dwarf water lettuce, dwarf hyacinth, naja grass, etc) can also add a lot to the aquarium, or even the stem floaters that can be weighted down to give the appearance of being rooted without the need to be actually rooted (such as hornwort, anachris, mycrophyllium sp., etc)
UGF are inferior methods of filtration though, so I would maybe save up for a while and invest in a better filter so you can have more choices of where and what type of plants to use.
If you need to use the UGF and would like to plant it in the mean time though and need advice, feel free to message me and I can perhaps help you tailor advice to the specific tank's needs, though I'm not an expert.