Are there any electrical components which may keep electricity inside them after the device is turned off?
Yes, called capacitors and if you are going to open a device which has them in, it is a good idea to know how to discharge them - usually through a spare resistor - and then check with a voltmeter to make sure...

Edit based on comment: There can be batteries either for keeping clocks etc running ie low power or sufficient to completely power the device.