I've not done it, but I don't see why it wouldn't work.
A simple battery shutoff switch would be cheaper, though.

regards,
Leon