It would make sense if you’re on bad terms with your neighboring countries. But if not, I think it makes a lot more sense to import power from abroad when it’s cheap there and expensive at home, and vice versa.
For example, Denmark has a lot of wind turbines so electricity is cheap here when there’s a lot of wind. Our neighboring country Norway has mountains, and therefore hydroelectric power plants. In periods where there is little wind in Denmark, and Norway is producing cheap power using hydroelectricity, it makes perfect sense for Denmark not to be self-sufficient, and instead import from Norway. And the same for Norway when Danish wind turbines are producing cheap power while their hydroelectric plants are running at low output.