My understanding is that your friend is saying eat whatever your maintenance calories would be if you didn't exercise. Then, when you add exercise, you'll be creating a deficit. In theory it works (calories out > calories in), but for me personally I've found that I really need to watch what I eat no matter how much I exercise.