That's true insofar as dealing with the Eastern Hemisphere. I don't know of any doctrine that would compel us to aid them in the event of invasion from e.g. anywhere else in Latin America.
The borders of Costa Rica are really close to the Panama Canal. If Nicaragua started to invade Costa Rica, I think America would put a stop to it really quickly to protect the Canal.