I told someone about the AA frequent flyer program while on vacation one time and they signed up at an office within days of their flight and they did NOT include the outgoing portion of their flight, so I do believe it has to be before you fly in order to get credit. I suppose your friend could write to the executive offices and write the whole story and they may take pity on him/her.
------------------
DtG