I wonder if the number of use of automation function is deducted when calling API

I understand that there is a limit to the number of automation functions per plan. I wonder if the limited number of automation functions will be deducted when the API is called.