Depends on the employer and employee. I've worked out a several month notice period; I wanted to leave, but didn't want to abandon a small team a couple of months before a hard deadline. Everyone involved was okay with that.
But then I wasn't leaving because the place was a train wreck; I was still engaged, and liked the team I was on. Had that not been true, it would have been a bad move on everyone's part.