i think it depends on the flag, and how you use it. if there is just a flag and it's in the picture then no. if it's THE picture then maybe. if it's a lawn flag, it can be someone else's art. if it's the country flag it should be ok. but in the end you would have to contact a copyright lawyer if you want to get the real answer, and even then it will vary.
---Mike Savad