Esp32 switching from one HA to another

I plan on building an esp32 based irrigation system for a friend of mine, if I were to set it up on my HA, should it be easy to transfer the esp32 to his HA while maintaining the configuration?