Indeed - the normal case where you can get away with this is for feeding class II light fittings...
(which having read the OP again I initially assumed we were talking about a D2D sensor light - but with another reading I am not sure if its integral to the light or a separate device now)