Will the Garageband version work in Logic too?

Not knowing what version to purchase, i’m wondering if the Garageband Version will work in Logic too? I just want to track a few midi files thru MG2…nothing fancy. Can i upgrade from the Garageband version later on?