Was America successful in the Korean War?

It was successful in containing communism, but not successful in achieving their goal of eliminating it entirely.