No to the G5, the current imacs are a lot more suitable to modern Logic use imo on a budget. The mini cube is more suitable for use as a logic node than a host for the sequencer (imo again).
Valis is right - the current iMac is a much better bang for the buck
it's more powerful, less noisy, has an internal PSU
and looks just great if you are into Alu design