This is true.
The reason for this was the cold war, and the US feared that left-wing governments would support Cuba (or become another Cuba) or the Soviet Union. It intervened in a number of occasions, such as against Salvador Allende in Chile or in El Salvador.