You can have an alias in your remotes by using the "alias" word, but you can't have either a remote or an alias functioning as both an alias and a remote - they have to be 1 remote and 1 alias. You can't call a remote (it triggers based on an event) and you can't have an event trigger an alias (without a remote calling the alias when it [the remote] triggers).

So "can it all be in one file"? Yes. "Can it all be one function"? No.

(I guess the answer depends on which question you're asking.)