It is, and it isn't... Depends how you view it. On the one hand, we make a lot more green energy than the total amount used in the country. However, there is some generation that isn't green, as there are areas in the country and times when both nuclear and fossil fuel power are essential to keep the grid topped up. This means that the actually generated volume of energy frequently exceeds the load and the excess is exported to the rest of these islands and to Norway as well. Green energy generation capacity in Scotland is still growing very rapidly, having already passed 300% of our own current requirements. And this is why the Westminster government is forcing through several new interconnectors going south and why the big international data centre builders are looking so favourably on the UK as a long term build option - energy security is some of the very best in the world. The current range of larger new pump storage builds will improve that further, storing the excess in country as a vast potential energy battery.
Anyway, please accept my apologies for the sidetrack, this thread isn't mine and it's meant to be about nice places to live. The whole of the UK is fortunate in having a very good level of energy security and happily for us up here in the north, the vast majority of ours comes from wind, hydro and PVs.
At the risk of further sidetracking and I accept that I am being pedantic… but Scotland (and Wales) may well produce more electricity than they consume, but they are a long way from producing all the energy they consume from renewables. Electricity is only part of the energy mix: gas still dominates for heating and fossil fuels for transport.