The short answer is yes, your hours are hours wherever you do them. However licence issue is about consistency in training such that you are properly enabled and tested to satisfy the licensing requirements of any one particular authority. Hours requirements are only the minimum that are required as part of the overall requirement. The syllabus for a licence will require that various components are signed off by an instructor/examiner that is approved by the licence issuing authority. You would be well advised to complete your training at one location, and that location should be under the authority of the country who you want your licence to be issued by.