Yes, the usb nightlight can be used in the socket, but it needs to be connected to the plug. There is a special socket, which is equipped with usb, so you only need to plug in the night light to charge it. At this time, there will generally be a red light flashing, which indicates that the current charging is under way. All you have to do is wait and unplug.