Planting[]
A flag can be placed on EVA. You do, however, need an upgrade from the astronaut complex in career mode. You can get some Kerbal xp from this.
Flags[]
Flags ingame have many varieties and can be changed before starting a game or at the flagpole.
Also, flags can be placed radially around the craft, for what ever reason you want to put them on.