Hmmm... I'm a little confused about this question also.
If she's an unmated virgin queen, then she won't mate. Not only because queens mate in flight, but because she'd (essentially) be mating with her own brothers and nature just doesn't work that way. She'll either go without mating, or they drones will. Either way, your virgin queen will probably go unmated. (But the upside, as if there was one, is that she'll be making a TON of drone bees! And, another "plus" is that you'll KNOW what caused your hive to collapse!)
Okay, if you mean, if you take your mated queen and shut her into a hive with a queen excluder, will she lay? Then the answer is, yes. The down side to that situation is that you will also be shutting in/out drones. And you still won't be preventing possible swarming. The worker bees with either "force" the queen to "diet" and "exercise" and fit through the bars, or they'll make a swarm cell and that unmated queen should be able to fit through the bars and escape.
So, that leads to the next question: Why would you want to do either of these?
DS