For that model of G4 iMac, yes, 2 Gb will work (source: Mactracker Mactracker),
1 - PC-2700 200-pin SO-DIMM (user accessible), 1 - PC-2700 184-pin SDRAM (factory installed).
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.