For a simple, cheap, and effective lightning arrestor, tie three knots on the power cord that runs from the computer to the outlet (Source: Tech article from Eaton Corp.)
To answer the OP's original question, NO. Once the device is unplugged from the wall outlet, lightning or any type of surge cannot travel through the electrical conductors. However, anything can be hit by a lightning strike, plugged, unplugged, or otherwise.