Eating junk food occasionally as part of a balanced diet is generally considered okay. It is important to focus on consuming a diet that is primarily made up of whole foods and nutrient-dense options, but indulging in a treat every now and then can be a part of a healthy lifestyle. The key is moderation and not making it a regular habit.