Yes, because the comparison doesn't matter.

Suppose i don't know how to multiply, you give me a table of 12 and now ask me to repeat it, I can do that even though i don't know multiplication, because I don't need to actually multiply i have to tell you whatever you already told me.

Similarly if have a finite language, the dfa can recognize all the words in the language because you already told it what the words are.