The defendant must get written permission from the bonding office to travel out of the state or country while on bond. Moreover, if the court has specifically ordered not to leave, then you must also get permission from both the bail agent and the court. Without these permissions, the defendant risks being arrested.