No, you do not need to update the widget code. All changes will be applied immediately after you save them.
However, if you change the widget’s display mode (for example, from an embedded widget to opening in a popup or on the right panel), you will need to update the widget code on your website accordingly. You can find more details about installing the widget
here.