Putting a spoon into a glass of boiled water stops it from cracking?

When pouring boiling water into a glas ‘they’ say that if you have a spoon in there it will stop the glass from cracking due to the sudden heat change.
Is this just an old wives tail or what?