Is It Acceptable To Ask A Recruiter If The Job Is Going To Be Filled Internally?

phone interview internal job position filled
phone interview internal job position filled

You hear about a job and get invited to an interview, but you've been to a couple where they ended up hiring internally and you don't want to waste your time. What can you do, is it acceptable to ask a recruiter if the job is going to be filled internally?