And Maggie Makes Three - S6-E13
Plot hole: When Homer is seen at work in the flashbacks (before Maggie was born), he is at his usual control panel in sector 7-G, but he only began working here when Burns made him safety supervisor in season 1, "Homer's Odyssey". Before Maggie was born he should have been working at the conveyor belt with the carbon rods, where we saw him in the first couple of episodes.
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer