Any creature with a digestive system will have waste products in the form of gases...and yes all these creatures do have to expel these gases to remain healthy...some in the form of a "fart" and others in the form of a "burp"...If I remember correctly, fishes gills perform dual duty from taking in air and expelling "noxious" gases...
So to answer your question, NO fish do not fart but yes they do get "gas"...
How is that for a technical answer...*thumbsups