How to rename the domain name

I want to migrate existing gitea server to another domain name.
Can I rename the “DOMAIN, SSH_DOMAIN and ROOT_URL” in app.ini?
Is this supported?
Thanks

Yes.