There was an incident a few years ago where two aircraft flying south through UK airspace were on transposed SSR codes.
The incident caused a great deal of confusion to both pilots and controllers.
If the codes had been validated correctly, then it probably wouldn't have got as far as it did.
Stick to SOPs, question things that don't seem right and ask for idents when you are supposed to.