Assuming they could keep the lich contained. The lich is an emperor after all. The PCs wouldn't just be going up against an immensely powerful spell caster, they'd also be going up against the armed forces of the realm. Unless the PCs are on par with the lich in terms of individual power and social influence, the task of defeating the lich is insurmountable.