There are similar but not the same.
Long-term is normally used as an adjective.
Long run is usually used as a noun.
Personally, I wouldn't use 'in the long term', I would use 'in the long run'. But use long term + noun (Examples: a long term plan, a long term commitment, a long term investment ).