Yes it is (or at least I presume so)
This will only work for "local game" not Single Player (so no bots)
Presuming RCON works in LAN games by default:
These commands should work for you:
demo.recordDemo [demoname] - Starts recording current gameplay and saves the file as demoname.bf2demo in your \Program Files\EA Games\Battlefield 2 Demo\mods\bf2\Demos\
demo.stopRecording - Stops current demo recording
demo.ShutdownDemo
That get's typed into the console, brought down by the ` key