Exactly.
Lincoln said if he could “preserve the Union” without freeing a single slave, he would do so.
He also said that if he could "preserve the Union" by freeing all the slaves, he would do so.