Yes, they can. Hormonal changes can cause irritation, they may be feeling discomfort, or possibly just need less sustenance due to decreased exercise. Also, males may be less interested in eating when a neighbour dog or pack mate is in heat, as they’re instinctively drawn to her and distracted from their food.