While a rooster does not lay eggs, yet you ask, "if a rooster lays an egg..." you have formulated a that such a bird is a hermaphrodite, with the ability to service the hens while being able to produce eggs like a hen. You may now procede to ask the question, but remember that key word "if". That simple word changes the answer from an impossibility to a possibility.
I read a lot of speculative fiction and even have several copies if the Worlds of If.