Upgrading a system with /home on a different physical drive

I plan to set up my computer so that the operating system is on an SSD, while the /home directory is on an HDD. I know how to install Ubuntu so that the system will be as I want it to be. When I eventually upgrade the operating system (say from Ubuntu 19.10 to 20.04), is there a way to just update the operating system without overwriting the /home directory?