For sure!
You might wonder why I didn't use a momentary switch, and that's because:
1. I love these little blue LED switches and
2. I can flip the switch as I get close to home and the door will open as soon as I'm within range: no pressing - didn't work - press - didn't work - press - finally worked.