"Taking the Lord's name in vain" is a religious concept (mainly Christian) meaning using God's name disrespectfully or flippantly rather than with reverence.
Appropriateness depends on personal belief and cultural context:
Ultimately, it's a matter of personal belief. When unsure, err on the side of caution and avoid potentially disrespectful usage.