To clarify, yes, Speaker for the Dead is the book Card wanted to write, but he found he had to write Ender's Game first to lay the groundwork. And he did. He wrote them in that order (Ender, Speaker). A prequel usually refers to a work produced later that comes chronologically before.
He literally spends the rest of his life making up for that mistake as speaker for the dead.