That was the objective. to restore the border to the post-WW2 Partition. It was never about invading the PRC or conquoring NK
We failed to fight to win, as Trump said. We stopped short of ending the war.