NO! Both are symbols of unpatriotic vigor. If you hold an Iranian flag in America, you're a traitor. If you hold a confederate flag in America, you're a traitor.
If its neither the flag of an American ally, a neutral nation, or a nation allied with the US you are a traitor to the union.