These G5s gain no additional boost from having all identical sticks. They do require matching pairs of course. But yes, 3GB will be better than 2GB.
I thought all the dual G5s had 8 slots. If you have 8, keep all the 512s and just add 1GB sticks. Then you have 4GB anyway.