Can a law firm in a country be hired in a legal action for you in another country?

If the firm, or any of its associates, are admitted to practice in the other country, yes, they can.