Why would you think it wouldn’t be? apt-get update does nothing more than refresh its database of available packages – it doesn’t touch any installations.
Note that “update” and “upgrade” mean different things in this context. Running apt-get update will update the local list of packages that are available remotely. Running apt-get upgrade will see if that list contains newer versions of installed packages and then download and install them replacing the old versions. That means that actually upgrading to latest versions is a two step process:
apt-get update to update the local list
apt-get upgrade upgrade to latest versions from the list
Typically when you do anything with apt-get (or related tools) you want to apt-get update first. Certainly in CI jobs you should apt-get update before otherwise using apt-* for anything.