Americans are deeply divided over whether the Obama administration did the right thing by swapping five Taliban leaders to win the freedom of Afghanistan prisoner of war Bowe Bergdahl, according to Reuters/Ipsos survey released on Friday.

Americans strongly agree the United States should make every effort to free prisoners of war like Bergdahl, an Army Sergeant who was captured in eastern Afghanistan in 2009. But they also think the prisoner swap deal set a dangerous precedent.

The Reuters/Ipsos poll of 958 Americans interviewed online found that 44 percent disagreed with the statement that trading Taliban prisoners for Bergdahl was “the right thing to do,” with 26 percent of them strongly disagreeing.

Twenty-nine percent of those polled said they thought the prisoner swap was the right thing to do and 27 percent said they were not sure, the poll found.