Can I switch to a different Wi-Fi network later?

Yes. Either update the settings in advance or let the device revert to AP mode when it can’t connect, and reconfigure it.