Yes. But be aware. For your logic, it is necessary to use a "value type - number " for input.
If the value type is text, then this block
get you an unexpected result like:
Input value = 100
Block result = 100100
This is a feature of the code language
That’s why in this example we use the hack to check if the input value is a number.