is jQuery that smart?

is jQuery that smart?

Can i have a jQuery autocomplete to have the following behaviour ?

I want the autocomplete to get data from DB only if the data is not available in the javascript array.

Can i do that?