Generally, no, for two important reasons.
- The power to the LED module must be current-regulated. Almost all flashlights have no built-in current regulation, so you must modify your light to use a current-regulating driver between the batteries and the LED.
- The LED module must be adequately cooled to prevent overheating and to ensure long life. Most incandescent bulb flashlights are not designed to provide cooling of the light source.