By default, it would. However, there is a way to prevent this from occurring, for backup drives that don’t need to be “always on” (e.g., for Time Machine), or for drives containing sensitive materials you don’t want mounted by default.
This is by specifying in the /etc/fstab file that you don’t want the drive mounted when the Mac boots up. You have to manually mount it when you want to use it, using Disk Utility, or from the command line.
My CCC backup drives are all set up this way. Here’s the command in my /etc/fstab file for ensuring that my “Sequoia CCC Backup Drive” (APFS format) isn’t mounted at boot up time:
LABEL=Sequoia\040CCC\040Backup none apfs rw,noauto
Here’s a link from Ask Different about using the /etc/fstab file: https://apple.stackexchange.com/questions/315668/how-to-configure-diskimagemounter-like-in-etc-fstab