Can a schoolteacher be fired for refusing to say the Pledge of Allegiance?

I, personally, had no problem with the pledge until they inserted “under god” some time in the 50s. I never said the pledge thereafter and a school would be on very shaky grounds if they fired me for it.