I'd say yes & no, based on my 23 years as a federal employee. Sure, we could not publish agency work in a private capacity. We could do outside writing based on our general professional expertise, as long as you got an ethics review to demonstrate no conflict of ethics, which I did routinely.