In short, yes.
When the government does something in accordance with Divine law, we are to obey it, because insofar that it is a friend to "good works", and accords with the Ten Commandments, its power is legitimate (see Romans 13). When it kills babies, it is illegitimate and that part of the law is to be disobeyed. The government is not a person, so it is possible for the goverment to be satanic in some respects and benign in others. This is what our government is like, and most others. "Legalization" of abortion set most of the modern governments on the road to complete illegitimacy. Some went farther than others.