Yes, that's OK.
You can map multiple physical buttons to the same single action. For example, D-pad, X, Y, A, B, Space, mouse click, or screen tap can all trigger the same “one button” effect.
The important rule is that the gameplay only has one action, not multiple different actions.