Are fruit flies good food for mollies?

Or most other tropical fish. I think they eat these bugs in there natural habitat and god knows they are easy to breed. If I bred batches of wingless guys would that be a good diet for my fish?
I’m thinking about breeding some of the wingless ones on like a big floating driftwood bowl. I think it might be kinda cool. They can’t fly away and my fish have something to hunt