Yes, as long as only one button is used, that's fine!
Of course, more people will be able to play your game if you offer an alternate possibility (a key on the keyboard and/or the mouse button), but you can definitely suggest the use of a controller. (and even use both triggers as long as they are connected to the same action)