Y cables with three wire extenders question

We have our pneumatic claw y cabled with two 3 wire extenders connecting to a y cable that is plugged into the digital port. Could we Y cable the solenoids together, then use just one 3 wire extender to save one 3 wire extender for other uses, or will it not work if the Y cable isnt directly into a port?

This should work.
We have this setup for our motorized claw and it works fine.

Yes, this is legal as long as 2 Y-cables are not hooked together.