No they did not. It was a propaganda campaign, which Chinese, North Korean, and Soviet officials concocted. The confessions that US soldiers gave only came after they were tortured by Chinese and DPRK interrogators.
You can read the exact details in this summary of recent evidence on the Wilson Center webpage (it's very long, but you can read the conclusion at the end).