The Society of Professional Journalists in their code of ethics says that journalists should avoid conflicts of interest real or perceived. Clearly it would be a conflict of interest for anyone acting in a journalism capacity to simultaneously be serving as a public servant.
In journalism, anything that we do as journalists that confuses the public about our ability to be independent in our reporting is obviously harmful to journalism.