Absolutely Krull.
You're really cutting the essence of D&D pretty thin, then, and lopping off two of its limbs while you're at it. D&D has always had sci-fi elements in it, from the very beginning. Blackmoor, Temple of the Frog, Expedition to the Barrier Peaks, Spelljammer half-machine templates, warforged (and really, Eberron in general)... And that's not to mention fantasy-only games with distinctly non-medieval setting. I've been in modern but magic games, stone age games, etc.
D&D is far broader than medievalesque fantasy alone.