Yes - absolutely. We'll actually give a definition of whatever algorithm we're looking for, often with specs provided.
I don't really care if you remember the definition of merge sort or bubble sort, but you should be able to code it up in a few minutes given the definition.