Absolutely not. There are already too many campaigns.
I even don't think state attorney generals should be elected.
A better idea may be to let the Senate Judiciary Chair appoint the attorney general and then of course the full senate would have to approve the appointment . So in this case Chuck Grassley would have decided who the attorney general was from 17-21 and you can make it that the attorney general cannot be fired without impeachment as well .
That would be very questionable since its an executive position being appointed by a legislator. The constitution clearly says the president is the head of the executive branch.
Also this does not shield the office from partisan influence.