The answer is no. From the Talmud:
Yoma 39
The High Priest mentions the name of God ten times on that day (Yom Kippur): Three
times during the first confession; and three times during the second
confession, over the bull; and three times when he confesses over the
scapegoat to Azazel; and one time with the lots, when placing the lot
for God upon the goat. And there already was an incident when the High
Priest said the name of God and his voice was so strong that it was
heard even in Jericho.
The prohibition against uttering God's name evolved at the end of the Second Temple period. It is rooted in the commandment not to take God's name in vain, which is related to the law against false swearing and Jesus' teaching not to swear at all. (Matthew 5:34) This developed into a strong tradition among orthodox Jews not speak the name of God. However, the Hebrew Bible is replete with expressions such as "As יְהֹוָ֖ה [yhwh] lives," and "I called on the name of the יְהֹוָ֖ה."(Judges 8:19, Ruth 3:13, 1 Samuel 14:39, Psalm 116:4, etc.) Later, the Hebrew word יְהֹוָ֖ה was replaced with terms such as Adonai and Ha-Shem - or The LORD in English. However, the text itself contains no prohibition against pronouncing the Name and it is virtually certain that priests, prophets, temple singers and the people generally did pronounce it. Indeed the Talmud (which is the source of the ban) states that this was once positively encouraged by the sages.
Berakhot 9:5
The Mishna [the core of the Talmud] relates: ...When the Sadducees strayed and declared that there is
but one world and there is no World-to-Come, the Sages instituted that
at the conclusion of the blessing one recites: 'From everlasting to
everlasting.' The Sages also instituted that one should greet another
in the name of God, i.e., one should mention God’s name in his
greeting.
Later tradition did indeed ban pronouncing the Name. However, there is no known case in Jewish history of a person being put to death for this. The Jewish Encyclopedia explains how pronouncing the name of God came to be seen as a crime in Jewish tradition:
Forty years
prior to the destruction of the Temple, the priests ceased to
pronounce the Name (Yoma39b). From that time the pronunciation of the
Name was prohibited. "Whoever pronounces the Name forfeits his portion
in the future world" (Sanh. xi. 1)...
Maimonides would later write (Mishneh Torah, Laws of Oaths 12:11):
It is not only a false oath that is forbidden. Instead, it is
forbidden to mention even one of the names designated for G‑d in vain,
even though one does not take an oath. For the verse commands us, saying:
“To fear the glorious and awesome name.” Included in fearing [the name] is not to mention it in vain.
Regarding accidental utterances, Maimonides said:
If because of a slip of the tongue, one mentions [G‑d’s] name in vain,
he should immediately hurry to praise, glorify and venerate it, so
that it will not have been mentioned in vain.
Conclusion: Pronouncing God's name did not always carry a death sentence. No such law exists in the Bible, and Talmudic tradition praises the High Priests who uttered it, as well a recalling a time when the Name was used in everyday greetings. There is no known case of the later Talmudic prohibition being enforced with capital punishment.