Apache is not Nextcloud. So, no. Upgrading Apache would be the responsibility of your OS packaging/etc.
Unless you’re asking about a particular packaging method other than the Archive installation method of Nextcloud. Since there are many, you’ll have to be specific since they’re all maintained differently (and not even necessarily all part of the Nextcloud project directly).