I have done this on a shrimp tank I had. It does work great! To help me with cleaning the pump due to it catching some dead plant material I got a sponge filter for a pre filter. It also gave the tank more media for the biological side. Making cleaning the pump itself only once in a while job. https://www.amazon.com/PondMaster-12600 ... dp_product
Or if you want make your own. Think you may like doing this. As a pre filter my after market pump lasted for years, just an idea , may work for you if you like.
I also do this for two bird baths I have and save me on buying a new pump every other year.