I would not call that "good" government. I'd be hard pressed to even call that a "government".
But under your reasoning, it’s up to the government to define what constitutes “good government” and prohibit anything they decide isn’t facilitating it.
But since the Founders considered a well regulate Militia (rather than an armed populace) necessary to the security of a free state, they decided to be a little more specific.
If that was the case then they should have written it as,
“....,the right of the militia to keep and bear arms shall not be infringed.”
We are speaking here of a “...Right of the PEOPLE...”, those same PEOPLE mentioned in the other amendments as indicating an individual right.