Normally, it should not be a problem. It depends on the rest of the circuit. For example, the battery negative is connected to the housing in most flashlights.
If you mount the emitter on a star and the star on the housing, there is no electrical contact between the LED and the housing. (So there is no need to electrically insulate the DC receptacle)
If you mount the emitter to the housing directly, there may be an electrical connection. Not al LEDs have an electrically neutral mounting pad. (So there may be a need to electrically insulate the DC receptacle)
Same for the driver board. You can either mount it electrically insulated (on a thermal pad for example, like the Taskled driver boards) or electrically connected to the housing.
Again, in flashlights the driver is usually soldered to the pill so there is electrical contact - This usually is the negative battery lead connection.