I have a remote for my gate and a different remote for my garage. Can I use one to operate gate and garage?

I am having to get out of my car, and go right up to my motor before it will open. Why?