Uncommon mosfet usage
The answer is, it depends.

If the gate drive is floating this will work fine, though note it has a polarity due to the intrinsic diode in the MOSFET.







simulate this circuit &ndash; Schematic created using CircuitLab

This however.. will not.







simulate this circuit

If you need to do multiples, you would need a common ground everywhere.







simulate this circuit

A better method would be to use a relay or better still an opto-coupled MOSFET.



The latter is also bi-polar due to the back-to-back MOSFETS which block the diodes.