In general, the word "Damn" can be used in a variety of situations.
For example, some people upon hearing bad news or something sad, quietly say "damn..." Or, used in anger, "damn it!" ... or even excitement: "Hot damn!"
Used in the proper circumstance, it's usually acceptable to say. But be mindful of the people around you, and the environment you are in.