Is it a good idea to buy a hail-damaged car?

The further north in Australia you go, the likelier you are to see a hail damaged car for sale. However, just because they are offered for cheap, does that mean you should buy one?