Wii cheat codes (Gecko/Ocarina) are data files — not executables. Virus risk is near-zero if sourced carefully.
Wii homebrew is mature and safe when done right. The console is the virus — not the cheats.