Yes, it's breaking a commandment.
Q. 111. Which is the third commandment?
A. The third commandment is, Thou shalt not take the name of the Lord thy God in vain: for the Lord will not hold him guiltless that taketh his name in vain.[560]
Q. 112. What is required in the third commandment?
A. The third commandment requires, That the name of God, his titles, attributes,[561] ordinances,[562] the Word,[563] sacraments,[564] prayer,[565] oaths,[566] vows,[567] lots,[568] his works,[569] and whatsoever else there is whereby he makes himself known, be holily and reverently used in thought,[570] meditation,[571] word,[572] and writing;[573] by an holy profession,[574] and answerable conversation,[575] to the glory of God,[576] and the good of ourselves,[577] and others.[578].
Q. 113. What are the sins forbidden in the third commandment?
A. The sins forbidden in the third commandment are, the not using of God’s name as is required;[579] and the abuse of it in an ignorant,[580] vain,[581] irreverent, profane,[582] superstitious[583] or wicked mentioning or otherwise using his titles, attributes,[584] ordinances,[585] or works,[586] by blasphemy,[587] perjury;[588] all sinful cursings,[589] oaths,[590] vows,[591] and lots;[592] violating of our oaths and vows, if lawful;[593] and fulfilling them, if of things unlawful;[594] murmuring and quarrelling at,[595] curious prying into,[596] and misapplying of God’s decrees[597] and providences;[598] misinterpreting,[599] misapplying,[600] or any way perverting the Word, or any part of it;[601] to profane jests,[602] curious or unprofitable questions, vain janglings, or the maintaining of false doctrines;[603] abusing it, the creatures, or anything contained under the name of God, to charms,[604] or sinful lusts and practices;[605] the maligning,[606] scorning,[607] reviling,[608] or any wise opposing of God’s truth, grace, and ways;[609] making profession of religion in hypocrisy, or for sinister ends;[610] being ashamed of it,[611] or a shame to it, by unconformable,[612] unwise,[613] unfruitful,[614] and offensive walking,[615] or backsliding from it.[616].
Q. 114. What reasons are annexed to the third commandment?
A. The reasons annexed to the third commandment, in these words, The Lord thy God, and, For the Lord will not hold him guiltless that taketh his name in vain,[617] are, because he is the Lord and our God, therefore his name is not to be profaned, or any way abused by us;[618] especially because he will be so far from acquitting and sparing the transgressors of this commandment, as that he will not suffer them to escape his righteous judgment;[619] albeit many such escape the censures and punishments of men.[620]