Is it possible to make an object shatter or explode on contact.
Short answer: yes.
Longer answer: depends on what you do mean by “shatter” or “explode”. It could be as simple as replacing original object with several pre-made ones and applying some random forces to them, to dynamically generating fractured geometry etc.
There was a nice glass fracture demo by drJones here.