Yes, the appointment of an attorney is not limited by location, as long as the person is over the age of 18 and has the mental capacity to act in the role.
However, there may be some practical considerations to take into account. Think about potential difficulties with communication or what would happen if an emergency arose.