No. He was deceived by the witch of Endor to give him what he wanted. Matthew Henry describes it:
God permitted the devil, to answer the design, to put on Samuel's shape, that those who would not receive the love of the truth might be given up to strong delusions and believe a lie. That it could not be the soul of Samuel himself they might easily apprehend when it ascended out of the earth, for the spirit of a man, much more of a good man, goes upward, Eccl 3 21. But, if people will be deceived, it is just with God to say, "Let them be deceived." That the devil, by the divine permission, should be able to personate Samuel is not strange, since he can transform himself into an angel of light! nor is it strange that he should be permitted to do it upon this occasion, that Saul might be driven to despair, by enquiring of the devil, since he would not, in a right manner, enquire of the Lord, by which he might have had comfort. Saul, being told of gods ascending, was eager to know what was the form of this deity, and in what shape he appeared, so far was he from conceiving any horror at it, his heart being wretchedly hardened by the deceitfulness of sin. Saul, it seems, was not permitted to see any manner of similitude himself, but he must take the woman's word for it, that she saw an old man covered with a mantle, or robe, the habit of a judge, which Samuel had sometimes worn, and some think it was for the sake of that, and the majesty of its aspect, that she called this apparition Elohim, a god or gods; for so magistrates are styled, Ps 82 1. 6. Saul, perceiving, by the woman's description, that it was Samuel, stooped with his face to the ground, either, as it is generally taken, in reverence to Samuel, though he saw him not, or perhaps to listen to that soft and muttering voice which he now expected to hear (for those that had familiar spirits peeped and muttered, Isa 8 19); and it should seem Saul bowed himself (probably by the witch's direction) that he might hear what was whispered and listen carefully to it; for the voice of one that has a familiar spirit is said to come out of the ground, and whisper out of the dust, Isa 29 4. He would stoop to that who would not stoop to the word of God.”