Read Stephanie Kelton’s book “The Deficit Myth” for an elaboration on your questions. It’s a non-technical introduction to Modern Monetary Theory. Spoiler: you are correct, the rules are different for nations that control their sovereign currencies (eg the UK, Canada, Japan, the US, China, etc., but not EU countries).