Adding new text field to drupal 8 menu
You only need an update hook if you want that your module can be updated on production sites already using the module. If you write a new module or the module is still in development you can simply reinstall the module. If you have data you want to keep during development use drush entity-updates after changing the code of the installed module.