Yes, asking the courts for an attorney to serve on the trial despite it being outside their jurisdiction is called Pro Hac Vice, which is Latin "for this occasion" or "for this turn". In the legal field, pro hac vice is a practice in common law jurisdictions whereby a lawyer who has not been admitted to practice in a certain jurisdiction is allowed to participate in a particular case in that jurisdiction, and is available in every American jurisdiction, although not guaranteed by law.
Most jurisdictions intend for pro hac vice admission to be used on a sparing and occasional basis. Generally, the attorney who requests authorization to practice in a jurisdiction within which they are not licensed must specifically request permission from the court to be able to appear as an attorney of record. Depending on the local rules and procedures, this may be accomplished with a motion to appear pro hac vice, in which an attorney who is licensed in the jurisdiction requests that the nonālicensed attorney be admitted to practice in a particular case. In most jurisdictions, an attorney appearing pro hac vice must continue to associate with a locally licensed attorney, referred to as local counsel, though the degree to which the local counsel is required or expected to participate in the matter varies widely. The out-of-jurisdiction attorney is typically required to provide the court with a statement from his local bar association indicating that he or she is a member in good standing and also pay a small fee to the court or its local bar association.