Does Minecraft mods harm your computer?

No.

It will only modifiy the game. If it's not written well it may also crash the computer but that would be rare.

If you don't follow the directions of the mod maker then it could crash Minecraft. Or the mod may not be compatible with any other mods you may have downloaded and it will do the same.