Yes and no: Any public official subjects themselves to public scrutiny in their service to the people. You are allowed to film them if what you're filming is in the interest of the public.
You are not allowed to film a public official as they are going about their duties as private citizens.
It is forbidden to film in areas where "no photography" or "no filming" signs are displayed. This is often seen at places like military zones and the airport.