The Declaration of Independence is not. It is quite clear about it.
Declaration of Independence refers to revolution, and gives reasons why revolution was morally justified.
After the problem of justifying secession for slavery morally, there is the problem that secession by a single state at pleasure is not constitutional, as the controversy would be required to be resolved by Article III, at the supreme court.