In general, yes, you should fly a dive flag while spearfishing in open water. Even if a dive flag is not legally required while spearfishing (check your state’s fishing and boating regulations) it’s a good idea to display a dive flag on your speargun float or your vessel to warn boaters there are swimmers in the water.