As bad as it will be for your budget – yes, you should throw away any helmet that has gone through a heavy impact. The EPS foam on the inside has been likely compressed and is no longer fully capable of softening another blow. If the ABS plastic outer shell is cracked, that is even more of a reason to dispose of the helmet.