You don't need to modify your code as it plays. However, if you do you turn what's a more traditional composition style workflow into a much more exciting, expressive performance workflow.
When I gig with Sonic Pi all I do is modify the code on-the-fly. It allows me to react to the crowd, the environment and my feelings :-)