Only if customers are willing to buy at that price. Which is only true now because there are no cheaper competitors to turn to, which in turn is because the entire system is operating at capacity.
Over time the high prices incentivizes bringing more power generation and transport online, which is exactly what we are seeing - new/reopened nuclear, coal, and nat gas plants are all planned or coming online across Europe and imports have spiked from places like the US. No one likes high prices but it does incentivize building more capacity that might lose money when prices are low, but make up for that when prices are high. This process doesn't happen over night but sanctions + war (roughly) did. Europe was lulled into complacency by consistent and cheap Russian gas for years.
Also, don't overlook those transport costs. Networks across all energy types are severely constrained and underinvested in. Doesn't matter how cheap you can produce energy if you can't get it to your customers cheaply.