If we have no free will, then is the entire legal system redundant since no one

Read another response by Stephen Maitzen, Jonathan Westphal
Read another response about Freedom, Law
If we have no free will, then is the entire legal system redundant since no one can be held accountable for anything since no one has control over their own actions?