If they have the requisite unused spell slots and will be around and willing for the entire ritual, I don't see why not. On the other hand, are they considered a component? If so, there may be a rule that you can never use an epic spell to create components for use in developing/casting another epic spell. I'll wait for someone with epic rules-fu to give you the details.