Simple gateway failover Question

I am trying to set up a simple 2 gateway failover. My question is, can this be done when the 2 different sources are not static IP’s. 1 is pppoe and the other is DHCP.