Yes, tap and hold is allowed.
It still counts as one button/input, because the player is using the same physical button.
So a quick tap can do one thing, and holding the same button can do something else.