As far as the legality (well EULA) is concerned no you should purchase a copy for each machine.
As for whether you can actually use one copy more than once, well there isn't any serial numbers tied to machines or anything like that to stop you.
Btw if it's Snow Leopard (10.6) it won't run on PPC Macs (your G5 iMac).