Dual end stops - number of pins

I am currently planning the wiring of my Primo. I’m hoping to be able to connect all four end stops with a 7 pin connector to my Ramps 1.4 case.
There are two wires coming from each endstop, so a total of 8. Are the endstops connected with signal + ground, so that I in theory could use only 5 of the 7 pins, with four signals and a common ground?

Yes, you can use a common ground.