Sorry, still a bit confused.

Will Al Asalam Alioukom serve both as a greeting and a reply?