No, a PS2 AV cable won't work on a Nintendo GameCube.
Buy a GameCube‑specific AV cable (composite, S‑Video, or component if your model supports it). Widely available online and at retro game retailers.