Yes, the wires enter the box 'through' the top of the SLB.

What also might not be obvious is that the left-hand box is rotated for a reason; the reason is to allow connection of the second pipe - which is located behind the pipe from the SLB.
The two boxes are connected with a rigid nipple. It is not possible for the boxes to move relative to each other; the nipple is corroded fast in place.