There’s no curse here, merely a vulgarity. There’s a difference.
Looks like it is the intent within the heart.
Is it a sin to cuss / swear / curse https://www.gotquestions.org/cussing-swearing.html