Yeah, that'll work too, or placing a current limiting resistor in the + electrode leadin wire from the battery, but that is getting unnecessarily complicated for most people, like as not they'll get the diode wired in backwards & nothing will work & they just become frustrated at why things are not working like they expected.