Pledge of Allegiance = Idolatry?

Is reciting the pledge of allegiance idolatry? What are some Scriptures that explain why a nationalistic attitude towards country isn’t wrong or pledging allegiance to the flag isn’t idolatry?