All raw uncooked fish has the potential to contain nematodes (worms) and various other pathogens, and yes these can affect fish in your aquarium.
My advice when dealing with fresh fish products, buy fresh, freeze for 48 hrs at 0F (-18C) to destroy any potential parasites, and use up within 30 days or so. Freezing will not destroy all micro-organisms, so there is still some risk involved in feeding frozen products, but freezing certainly minimizes those risks. Also note that frozen fish that have been unthawed under refrigeration, should be fed within 24 hrs. (or discarded)
Freezing tends to also increase the concentration of thiaminase in tissue, so the shorter the duration in the freezer, the better. Little is known as to how thiaminase affects various species, and according to various studies the amounts found (even within the same species of fish) tend to vary as well. Most public aquariums tend to supplement to avoid deficiencies. (especially B1, vitamin E, and vitamin C) IMO fish kept in captivity require full vitamin & trace mineral supplementation to some degree or another. This is a non-issue if one is feeding a commercial pellet as the staple, or even stuffing "some" pellets into frozen foods.
The good news is, foods such as tilapia that are purchased at your local grocer will not contain substances such as malachite green, etc, as they are human food grade.
HTH