It is hard to say without more information.
It could be bad: The bug could be a parasite harming the fish, part of an infestation, or a source of stress.
It could be good: It could be a harmless hitchhiker, a beneficial organism, or even a food source.
To know for sure, identify the bug, observe the fish's behavior, and consider whether other fish have similar bugs. Consult a fish expert or veterinarian if you are concerned about the fish's health.