A dog will not be eating fecal matter out of revenge but for other instincts and reasons. We have an article here on the topic to explain concerns and causes. The timing of your dog eating poop and something that could upset them will be just a coincidence in this case. It is more so that the timing occurs that they could ingest fecal matter and there is an underlying problem to be aware of.