It depends on the snake. Some people say you should not do it.
I've had Boas, Kingsnakes, and Corn Snakes and never had any problems.
The snake can live a long time without food so if there is any doubt, there's certainly no harm in putting off a feeding or two.
My snake will sometimes refuse food during shed, but if he's hungry and willing to take it, then I go ahead and feed.