Yes. The blue, brown and yellow/green earth will need to be connected.
Your blue and brown might need a trim to get them into the connection housing.
Probably obvious but isolate the power to your lighting before working on them.
You may need a bit of earth sleeving. I think your bare earth...