My experience is that some species do not lay eggs if they have not mated. Many species live short lives and feed primarily on carbohydrates, so they do not produce many, if any eggs during their active adult life since they do not have the stores of fats and proteins to do so. Maybe carnivorous beetles might produce infertile eggs. If you think about it in terms of biology, females that have the tendency to lay eggs before they've mated would not have produced many, if any offspring. That behavior should theoretically be selected against.
My beetles have never laid eggs without mating, and won't even do the same behavior you see in ovipositing females unless they've mated. I've had females die of old age without mating and they did not lay eggs. They did seem to live longer than those that did lay eggs. It's probably because digging or chewing and compacting substrate during oviposition uses a lot of energy.