If you want to do both working at a residency program is a good way to do that.
I think it’s possible to switch after a couple years if you’re really dedicated to it, but def could be difficult.
I don’t practice full spectrum family med anymore and I’m only a few years out, and I do try to read aafp articles but even the nuances of managing diabetes I have forgotten since there are so many new meds now. If I really wanted to go back to outpatient primary care it would definitely take a lot of reading and reaching out to colleagues. I def couldn’t go back to inpatient!
At first I thought I wanted my job out of residency/fellowship to still be "full spectrum" so I wouldn’t lose so much knowledge right away and could narrow things down over the years, but ultimately I’m happy that I’ve found my little niche and am very happy that I was family med trained.
One of the FM hospitalists that would help out during residency said she had plans to go in to outpatient, but 10+ years later she was still doing inpatient and didn’t feel like she could switch without significant effort.