With regard to harvesting the actual flowers, if you leave female ones, that have a baby courgette developing behind them, as opposed to male ones,those that just have a thin straight stem, these will develop into fruits once they are pollinated.
So don't eat all the male ones and leave the female ones too if you'd like to harvest actual courgettes