In general, sure:
However the Alfred window by default can not be recognized as a "App", because it is not really active. There are solutions to this: