Switch control LED parallel to injection nozzle?

I am just considering whether a LED equipped with a correspondingly dimensioned pre-resistance can clamp parallel to one of the injection nozzles, so that this LED then lights/flakes when the injection nozzle is working. Is this just theoretically thought right… or does it work in reality?