Direct answer: Yes, if the remote has enough buttons and each button can be programmed to a compatible receiver or operator.
This is not guaranteed just because both devices use the same frequency. The radio/code systems must be supported. In some setups, adding a compatible receiver to the gate is the easiest way to put the gate and garage door on one remote.
Check both systems before buying. Write down the garage-door opener model, gate receiver model, and the radio formats each supports.
Official example: Nice/Linear’s multi-channel MegaCode remotes can assign different buttons to compatible garage and gate receivers.