Yes, it is necessary; see `:help undo_ftplugin`. The undoing of the filetype plugin is inherently a buffer-local operation.