Could SO discourage this sort of behavior?
Sure, easily. Many forums lock posts as soon as they're created, preventing them from ever being changed. Some provide a small grace period for fixing typos, but lock it down forever once this is done. Obviously, this precludes extensive editing... And having all of your mistakes forever on display would seem to be a deterrent as well.
Should they?
Well... I'm sure you've at one point or another ended up on one of the forums I described above. How'd you like wading through a few pages full of knee-jerk half-assed answers looking for one that actually worked?
Answers on Stack Overflow often last for years. In general, it's much more important to have answers that are correct long-term than to worry about how they looked at various points in the first day of their existence. If someone's willing to recognize their own mistakes and fix them, that's worth encouraging.