Custom App with authentication log

Basically yes, you can create a custom ML job and a custom rule based on this ML.

All pre-built ML Jobs and Detection Rules will use data from know integrations, like System, Audit etc.

Any logs from Custom Applications will require custom ML jobs and custom security rules.

Also keep in mind the ML requires a paid license.