yes. but most of it is not to other countries. Most government debt (over 80% globally) is privately owned through sovereign debt instruments like bonds.

And who owns the bonds?

Private citizens and companies, as the gp said.