Yes in low doses, but make sure the surface of the water is broken by the filter or an airpump as melafix can leave an oily film on the top which might make it difficult for them to get air.
The fish themselves should receive extra airation in most cases when medicating anyway.