In my old garage, pic below, I hung three, 4' fluorescent lights in the bottom of the upper cabinets, which I built using a 2x4 frame. I had some j-boxes in the wall underneath the peg board where I did the wiring for the lights. The J-boxes were mounted flush with the drywall, but I could still access them if I removed the peg board, which was held in place with several screws.
In my new house, I would like to build a similar setup, but I now have access to some attic space above where the workbench will be. Instead of installing the j-boxes in the wall under the pegboard, I would rather place a j-box in the attic and run down the inside of the wall with some 14-2. The 14-2 would come out in the bottom frame of the cabinet and run directly into the light where it would be hard wired, in place of the regular cord.
Would there be a problem in doing it this way?