Can I create the Validation Rule using Custom Function in Zoho Books

Can I create the Validation Rule using Custom Function in Zoho Books

Hello There,
        we need to restrict the submission of sales orders  in confirm status.when the SO is Confirm Status.by using Validation rule in the SO. rules depends upon SO status.but how we restrict the submit action regarding another field values that means we can't remove or add the line items against Sales order. is are any Custom function in Zoho Books.