Can You Nuke An Asteroid?

Could a nuke stop an asteroid?

.