Could secession and the Civil War have been avoided through political compromise?

Could secession and the Civil War have been avoided through political compromise?