Yes, it should be a direct swap. The first few generatations (until about 2009), used a PATA optical drive bus like the G4 laptops. Something to take note of, the optical drive in the Macbook/Pro may be slimmer than that in the G4. While it may fit, it may not line up correctly.