I know it would work but will it work if I add a secondary hdd and not buy a bigger ssd
Yeah, no problems at all.
Virtual memory is around from way more than SSD and it always worked.
I've mined for quite some time with old HDD with 32Gb of virtual memory and I didn't notice any difference between SSD or HDD