Yeah, exactly. Just yesterday, I had to edit a keyboard take because the keyboard player wasn't available to re-track. Some mistakes and some iffy timing. And it's nice to be able to do that to the standard we can these days. The raw material was good enough to get away with it.
The thing is, though, it took me about an hour, and the song is three minutes long. If the player had been available, we could have done 10-20 takes in that time. More realistically, I'd expect to get it nailed within two or three takes.
So once you're in the habit of trying to edit experimental noodling into finished tracks, well, you'll get some accidental gold, to be sure, but your overall efficiency will have gone through the floor.
Write the song > rehearse the song > tweak the arrangement in rehearsal > play it live a few times if you possibly can > track it. Never fails. Other methods can produce great stuff, of course, but they're all less optimal, at least in terms of music performed by a band.