Yes, I regularly have to collect female virgins (12500 of them in the last week). They will lay eggs especially when there is extra yeast available. It is actually a good way to check virginity (in case a fly hatched early and was already mature, or a male made it through sorting etc.) - put some extra yeast grains in the vial when you collect them, leave them for a few days and then check for larvae, if they are not virgins there will be eggs and larvae, if they are virgins there will only be eggs!