It depends. If you have a recruiter helping you with your job application, leave it to the recruiter. If you apply on your own, it can depend on how you phrase the question and when you raise the point.
https://www.staranise.com.hk/knowledge-hub/blog/job-interview-questions-to-not-ask.html