No, freedom of movement is not a right when you are in prison (obviously).
When you commit a crime that lands you in prison, you lose certain rights, and the right to go where you want is number 1.
In many cases, they will allow you an escorted absence for such a situation, but it is not guaranteed, and will depend on a number of factors, such as distance, crime committed, behavior while in prison, etc.