IAX trunk

Is it ok to set up an IAX trunk on a pbx which registers with itself?

The reason for this is that we have 2 servers. If one goes down I want it so the phones just register with the other server and use the same dialplan as before.