You have a right to move freely within the state. You also have a broader right to travel and to obtain a passport for the purpose of travelling.
Your right to a passport may be restricted or limited. For example, before granting you bail, a court may require that you agree to hand over your passport. The state may also restrict your right to travel for the purposes of national security.