Can asterisk server in dynamic IP?

now my asterisk server using static IP…but i want to change it to dynamic IP.
so i want to know how i login account in my sjphone. can I set the proxy domain by domain name instead of IP.

ps: example: www.abc.com