By all means pray for the dead. It pleases them very much. They are flattered. The gnani does not need your prayers. He is himself the answer to your prayers.