Yes, its the idea of punishment karma that some use to explain away tragic events. However the Buddha said: