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), the widget code on your website stays the same, but you will need to add a button or link that opens the widget. You can find more details about installing the widget
here.