Wherever you earn them, your contact hours should never expire. As long as they were obtained prior to application, you can utilise them whenever you choose to apply for the PMP exam.