Yes. North Carolina wasn't the first state to secede but a few states had already done so and it was a state that promoted slavery and Abraham Lincoln opposed of slavery.
When South Carolina seceded, Buchanan was still in the chair, and Lincoln was President-elect.
Abraham Lincoln
Abraham Lincoln the south seceded from the union because he was elected president.
South Carolina was the first one that did. That state had always been the one that asserted States' Rights most loudly, and it led the secession. When Sherman had finished with Georgia, he punished South Carolina heavily for starting the war, burning down the capital Columbia.
December 1860, as soon as it heard the result of Lincoln's election as President. Incidentally, it did not just attempt to secede. It did secede, followed by ten more Southern states.
The election of Lincoln as President
No. South Carolina seceded on December 20th, 1860, before Lincoln was officially sworn in as President. However, the state did secede as a reaction to Lincoln's election.
When South Carolina seceded, Buchanan was still in the chair, and Lincoln was President-elect.
Abraham Lincoln
The election of Lincoln as President.
3 months
The election of Abraham Lincoln as President.
DecemberDecember 20, 1860 (following the election of Abraham Lincoln to the Presidency).
South Carolina voted to secede from the Union.
The southerners hired a assassin to assassinate president Lincoln.
As a consequence of Lincoln’s election, a special convention of the South Carolina legislature votes to secede from the Union.
Abraham Lincoln was president when the first states began seceding. Lincoln's election was basically the final straw that made the states want to secede.