Of course, a literal serpent cannot talk; and the Bible later identifies the power behind that serpent as an invisible spirit person.
... But, as was true of humans, this spirit son of God had free will, the ability to choose how he would use his faculties.