What config files to copy to new drive/OS install?

My SD card recently died but i was able to copy /etc/ off it intact. I would prefer not having to redo my configuration again. Is copying /etc/pihole and /etc/ dnsmasq.d to the new install sufficient or would that break something?