Zend certified PHP/Magento developer

Magento 2 manual Installation

Whenever we install magento by downloading magento zip(Manually), Magento core modules are stored in app/code/magento folder.
How magento update works when we want to upgrade older versions to new version using composer update command?
After completion of update do we need to remove app/code/magento ?