Firstly this thread is posted in wrong section, so I assume Admin/Mod team will move it to correct section.
To answer your question. No it is not possible to do such thing. This is security feature and if alarm box is immobilized you cannot force the Engine ECU to learn code from such alarm box. You also cannot force the alarm box to unimmobilize itself other but with use of appropriate matched fob.
Otherwise it would be pretty easy for thiefes to put another engine ECU pair it with alarm box and drove car away.