Yes you can with a Bluetooth connection device you will have to buy. Reason being is that your G5 does not have Bluetooth built in. The Magic Mouse works off Bluetooth. You will love the Magic Mouse once you get the Bluetooth device and pair it with your mouse.