Yes, but when the majority of people cannot change their habits to match prices, you're just raising electricity rates.
It turns out that the energy price charged by a traditional contract matches the peak price of a typical day, plus a healthy profit margin. This makes sense because most electricity is consumed when prices peak.
So switching to a time of day contract does not actually raise your effective price per kWh, at least here in Belgium. Instead, it more or less keeps the same price for peak time, while giving you access to much cheaper energy off-peak.
https://theconversation.com/whats-behind-15-000-electricity-...
They were exposed to electricity spot prices and got bit hard when they spiked during a winter event that overloaded the grid.