Yep....many fish will enjoy a nibble on some vegetable matter....i used to feed chunks of courgettes to my fish and most of them...all catfish and loaches, livebearers and tetras loved it. Courgettes and cucumbers are good and some people put a slice of raw potato in for their plecos.
A squashed and de-shelled pea or two goes down well too.
I would be inclined to only leave it in the tank for 24 hours...although mine only lasted a few hours. Also, buy some lead strips like you get for aquatic plants to weigh the veg down.