The sheriff or superintendent of any jail may enter into an agreement with the sheriff or superintendent of any other jail in the Commonwealth to transfer and transport prisoners between the respective facilities, and to confine such prisoners, unless such transfer is otherwise prohibited by law.
Va. Code § 53.1-79.1