Is Domain Authority of a website a ranking factor?

No, it is not. It never was!

Domain Authority is a metric developed by Moz and it is not used by Google as a ranking factor.

Have a nice day!