If you want to burn fat, walking is one of the best ways to do it. It you want to build muscle, there are better options. But long walks are absolutely good for certain kinds of exercise.
you also burn fat while eating pizza, but you put in lots of more calories. Walking doesnt use many calories. Its still healthy though, and better then nothing at all.