
Well if you give them a foul it’s for something that happened before your goal. So the play should stop there. And also, goals are only called back if a foul is deemed to have had the potential to affect the buildup (like if the foul was to win the ball which was then passed to you and you scored).