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. You can’t use the out-of-turn function of a Surprise during your turn. Note that the Canceled Plans card specifically says it is used to stop a Goal which another player has just played.