I did make an attempt to search the stickied post regarding the NEC but really didn't find the answer to my question.

I have a sub-panel that services all my pool equipment (pumps/motors, heaters, light, etc.) that I want to move from the side of my house and into the new pool shed I'm going to erect.

We are busting up the pool decking so now is the perfect time to bury whatever stuff I want to do.

I want to extend the lines from the old sub-panel location at my house to the new location at the pool shed. Can I splice these lines and put them in a junction box and feed from there to the new sub-panel location? Or do the sub-panel wires need to be unbroken straight from the main panel all the way to the pool shed? Or is that up to the AHJ?

Of course, I'd like to splice the lines...I have length for that right now. If I have to run it from the main panel, I gotta go buy new wire for that. $$$s

Thanks