Uses Jira workflow validator in create transition jira service management

I want to know if it’s possible to capture values ​​from a field when creating a JIRA Service Management ticket and call an API to validate that the value is valid. The ticket shouldn’t be able to be created if its value isn’t valid. Is this possible?