I think it helps. Don't forget, Paul mentions having baptisms for the dead. That would include prayer, ipso facto....
Copied from my post #15:
The church in Corinth was in a state of doctrinal confusion - they were a mess!
(1Co 1:10 KJV) Now I beseech you, brethren, by the name of our Lord Jesus Christ, that ye all speak the same thing, and [that] there be no divisions among you; but [that] ye be perfectly joined together in the same mind and in the same judgment.
(1Co 1:11 KJV) For it hath been declared unto me of you, my brethren, by them [which are of the house] of Chloe, that there are contentions among you.
(1Co 15:12 KJV) Now if Christ be preached that he rose from the dead, how say some among you that there is no resurrection of the dead?
One of the issues dealt with whether or not the dead are raised. He is arguing that if they do not believe in the resurrection, why bother being baptized for them. He is not endorsing nor condoning it.
Your statement: "Therefore, the idea of praying for them is okay because the dead are raised to life."
While you are correct in that the dead souls are raised, they are not all raised to spend eternity in heaven - life. The children of Satan are raised to spend eternity in hell, the second death.
(Rev 21:8 KJV) But the fearful, and unbelieving, and the abominable, and murderers, and whoremongers, and sorcerers, and idolaters, and all liars, shall have their part in the lake which burneth with fire and brimstone: which is the second death.