It should work. You might have to connect the GND pin to a negative bias point to keep sneak paths from conducting.
They're diodes so they don't respond in as ideal a fashion as diode-connected transistors do (most likely \$\eta \ne 1.0)\$, which may compromise this particular application.