Yes, but as I said twice only if the currently installed version is different from the default version. Otherwise ALTER EXTENSION UPGRADE is a no-op.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных