Was John Quincy Adams president during the civil war?

No, Abraham Lincoln was the President during the Civil War.