If their behavior adversely impacts the performance of the functions of that office, yes, it would seem the very basis of that law.
In other places, I believe they call this plain old corruption. At the very least, it should present a material case against one's suitability to hold office, although there is no law against simply lacking personal integrity.