Drivers License in another state?

So when I lived in Michigan I took both segments of drivers ed and passed. I have my permits for Michigan still. I’m 18 and I got married and moved to North Dakota with my husband but didn’t get my license before moving away. My question is, since I’m going back to Michigan to visit for a month, can I take my drivers road test while I’m there and get my license? Or would I have to still live in Michigan? Sorry if this was all over the place I’m bad at posting 😂