Yep it's wired correctly. You can cut the wires shorter but I'm wondering if you will have enough room for the wires nuts etc. even if you do cut the wires. You might want to consider a 4" round plastic electrical box mounted on the back side of your plywood.
-----
BigT
There is a difference between ignorance and stupidity. The ignorant can be taught, stupidity is beyond our control.
1.2 P. m. melanoleucus B/W N. J. Northern Pines
1.2 P. d. deppei Mexican Pines
2.2 P. l. lineaticollis Linis or Lined Pines
1.2 P. m. lodingi Black Pines
0.3 P. c. sayi red bulls
1.1 Drymarchon melenurus Blacktail Cribo
1.2 D. corais Yellowtail Cribos
1.2 M. s. cheynei Jungle Carpet
2.6 L. p. pyromelana Arizona Mt. Kings
1.1 L. g. californiae B/W Cali kings
0.0.3 M. f. flagellum Eastern Coachwhips
1.2 G. m. bottegoi Western Plated lizards