Yes, the United States and Puerto Rico share the exact same Pledge of Allegiance. Because Puerto Rico is a U.S. territory, its residents pledge allegiance to the same flag and republic. The text, penned by Francis Bellamy in 1892 and formally adopted by Congress in 1942, reads:
I pledge allegiance to the flag of the United States of America, and to the republic for which it stands, one nation under God, indivisible, with liberty and justice for all.
In schools and official ceremonies across the island, the pledge is routinely recited in both English and Spanish. The Spanish version translates the sentiment faithfully:
Juro lealtad a la bandera de los Estados Unidos de América y a la república que representa, una nación bajo Dios, indivisible, con libertad y justicia para todos.
The pledge debuted publicly at the 1892 Columbian Exposition in Chicago. Its adoption in Puerto Rico followed the island's acquisition by the U.S. after the Spanish–American War (1898). Today, the bilingual recitation reflects Puerto Rico’s unique cultural identity within the American polity.