Short answer: Nope. Long answer: Not really, but don’t make it your only water.
Your body needs minerals to function. Drinking water gives you some. Distilled gives you zero.
Drink nothing but distilled for months? You might leach minerals from your own bones. That’s extreme, though.
Most of us get minerals from food anyway. So occasional distilled water? Fine.
Wild fact: In the old days, sailors drank distilled seawater. It kept them alive, but they still got sick from lack of electrolytes. That’s why Gatorade exists.
Distilled water is the original sugar-free, calorie-free, flavor-free drink.