Quickie question, I'm sure this is ok

I have 3 microswitches at moment 2 on the Y axis (Dual ballscrew) and 1 on the X axis, I want to wire from the Y axis microswitch to the 1 of the X Axis microswitches in series and then to the BOB X input and the other Y axis switch to the Y input is this ok?