2 sd cards

If i build a pihole on 1 sd card and swap it with an other sd for an other project will the pihole still work if i plug it back in later?