No. In Homer's Odyssey, Poseidon does not condemn Odysseus to an infinite journey. The punishment is severe—but definitively finite.
Odysseus successfully returns to Ithaca (Book 13), reunites with Penelope, and reclaims his throne. Zeus ultimately orders Poseidon to cease his persecution (Book 13), and Athena guides the final leg home.
The "endless wandering" misreading likely stems from the epic's sprawling middle books (9–12), where Odysseus recounts his adventures to the Phaeacians. But the narrative structure is nostos (homecoming), not eternal exile. The journey is protracted and perilous—but it ends.