you got shocked...you mean with static electricity? Or what exactly? When you plugged it on the electricity?
To be on the safe side, you can always return it due to "not" working. But, if you install cpu and ram and gpu and start it...if its faulty, it will start beeping at least. Or stay dead. Usually it will not break components. Usually.