No. Costa Rica is a sovereign, independent nation in Central America since 1821 (from Spain) and 1838 (from Federal Republic of Central America).
Confusion may stem from U.S. influence in the region (Banana Wars, United Fruit Co.), but Costa Rica has never been a U.S. territory.