Yes, it would help.
The fungus on the wood and infection on the fish aren't the same thing. They could both be an indication of poor maintenance/lack of water changes, though.
If you see a fish with some kind of disease, it's best to treat it right away.