Is it legal to hang a flag public light post?

no vandalism, just tying it up there with some cheap rope.