You're right.
The Line (Live, brown) wire from your flex needs to join with the brown (L1) from the motor and one of the white wires from the capacitor; I did this using a soldered t-splice and some heat shrink, using a connection block is probably better practice.
The remaining White wire from your capacitors wants to go to the Black (L2) wire from your motor.
The blue (L3) wire goes to the blue Neutral wire in the flex.
The Earth (PE) wire joins to the earth of the flex.
Crucially, when you put the NVR switch into the flex, remember that the earth should not be switched, if your contactor has 4 connection points, that's because it's intended to be dual voltage and allow 3Ph+N as well as L+N; a purpose built DOL will usually have a built in connection block for the earth wire which neccitates striping an extra few inches of cable, and trimming the L&N strands back, to leave sufficient wire to reach with the earth strand. Apologies if you already knew that, but it's safety critical.