I did the same thing. There were two major points where I realized what I'd already written wasn't write, but I told myself to keep going, get to the end of a draft, and fix it all later.
Dear reader, "later" arrived to years ago, and it scared the hell out of me. Because this is my first novel.
(I've written a LOT of other materials, but not novels.)