No, it is not safe or appropriate to withhold food from your dog as a punishment. This can lead to negative behavioral issues and cause unnecessary stress and harm. Positive reinforcement is a much better approach.