My new construction home has a 23.5' cathedral ceiling. The electricians roughed in a junction box that is slightly off-center with the room below. In order to fix this, and at the same time not move the current junction box, I'd like to stub up a pendant light through the drywall ceiling. The pendant light would be dead center within the room below. However, it would also be 6 inches or so to the right of the current junction box.
Is it within code to stub up a pendant light through the drywall ceiling, and wire the pendant light ( in the attic space above ) to the roughed in jbox? The junction box is around 6" from where the pendant light needs to go.