You can. Create a boolean variable named ‘Movement Locked’. Set it to true when you want to lock the controls. Within the event handlers for charcter movement (Move forward, Move right…), use a Branch node to test for this boolean variable and apply movement inputs only if it is FALSE.
When you want to let the charcter move, set this variable to False.