Yes, sometimes they do. And how long really varies a lot. It depends on the snake in question and on the steps the keeper takes to try and get it eating again. There's really no way to say.
Again, as I've mentioned earlier...the fact that its stopped eating is much less of a concern than the fact that it has apparently lost so much weight in such a short time. Are you planning on taking him to a vet?