Not initially. He didn’t anticipate the strength of Ukraine’s resistance. He thought he could just waltz in and take over as he did in Crimea.
Once he ran into trouble, he was already committed and couldn’t back out without losing face.
That’s what all the negotiations have been about. How Putin can retreat without looking like a fool and a loser.