I mean, sure, if you want a toothless world government with no power that wouldn't be able to keep countries in line. In which case I'm happy to report we already have this: its called the UN.
For anything else you would call an actual government, the highest body has the power and physical force to keep those under them inline. Even in the USA, where states rights are a thing, the federal government could easily force them to do basically whatever they want.
For anything else you would call an actual government, the highest body has the power and physical force to keep those under them inline. Even in the USA, where states rights are a thing, the federal government could easily force them to do basically whatever they want.