Yes, you can use the isMatch function like isMatch($yourattribute, '^([0-9]+)$') in a microflow, see the documentation
isMatch($yourattribute, '^([0-9]+)$')