Hah some Ferengi actually did this in an episode of TNG! They showed up on a random planet with a replicator and then used their ability to produce anything as a means to subjugate the population.
I believe that was Voyager and the Ferengi were stranded in the delta quadrant after the incident with the stable-on-one-end wormhole in TNG. Imo it wasn’t the worst strategy in their situation.