Raspian and Retropi on two separate SD cards?

Hi, complete beginner here, so apologies for my ignorance. If I wanted to use my Pi3 alternately as a desktop and an games machine, would I have Raspian on one micro SD card and Retropie on another (simply switching them and rebooting when I wanted to change functions)?

Thanks

Absolutely. It’s not as convenient as a single SD card set up to boot into multiple operating systems, but it’s much easier to set up!

Thanks for taking the time to help, I really appreciate it. I think I’ll ultimately buy a second Pi, but I want to make sure I can get it all working first.