It depends on the coral. For those species with no senescence, yes it can go on indefinitely. For those that senesce, the clock starts ticking from the time the primary polyp starts growing. Frags made from such a coral will have the same genetic age as the parent colony, so the same amount of life left in them.