If you post bail and are awaiting trial, you are generally allowed to leave the state unless the court orders otherwise. However, you are expected to return to the state for your court proceedings. Failure to do so may have legal consequences.