I would certainly have thought that the majority of ships and subs carried some sort of flash light and gave out morse code signals to other shipping at certain times so yes I think this is very feasible, and red and green port/starboard lights would be good if a switch can be added!
Rick