Q: Can you use the out-of-turn option on Canceled Plans to nullify a goal you are forced to play during your turn that would cause someone else to win?

A: No. In general, you can’t use the out-of-turn portion of a Surprise during your turn, moreover the Canceled Plans card specifically says it is used to stop a Goal which another player has just played.