To check, take the socket off the wall and look to see how the two cables are terminated.
If they are part of a circuit, you will need to join them together under the floorboards. However, you cannot use a junction box, as it won't be accessable. You can either solder them, or crimp...