Could secession and the Civil War have been avoided through political compromise? How, or how not?

Could secession and the Civil War have been avoided through political compromise? How, or how not?