Herod, in his sinful state honored her desire and John the Baptist was beheaded. The Bible teaches self control. But the fruit of the Spirit is love, joy, peace, longsuffering, kindness, goodness, faithfulness, gentleness, self-control. Against such there is no law. And those who are Christ's have crucified the flesh with its passions and desires.
Self control is the opposite of lewdness.
Lewdness, sensuality, living to please the senses brings about death. Living by the Spirit of God puts to death the deeds of the body. Gluttony returns to moderation. Drunkenness returns to abstinence, which is God's plan. Sexuality is expressed in a marriage approved of God.