No, You are meant to hit the vegetables and let the candy pass. However hitting candy will lower your health. Hitting vegetables and letting candy pass will give you money. If a vegetable passes then it deducts from your money.
So sorry for unclear instructions on the games page😞🙏