N.Y. Judiciary Law § 760
An application may be made, either before or after the final judgment in the action, or the final order in the special proceeding.