No. "Selling your soul to the devil" is a myth and literary metaphor (the Faustian bargain)—representing a moral compromise for worldly gain, power, or knowledge.
It originates from folklore (the German legend of Faust) and was immortalized by Marlowe (Doctor Faustus), Goethe (Faust), and countless later works in literature, film, and music. No literal transaction exists; it's a symbolic framework for exploring temptation, ambition, and consequence.