If Element of a solar panel is shaded, that string will wish to consume electric power, reversing the flow of electricity. Diodes inside the junction box reduce that from happening.
Yes, a junction box is needed https://owainljjk085266.pointblog.net/the-5-second-trick-for-solar-junction-box-manufacturer-72248220