Is the sentence right or wrong?


— Was she cooking dinner when the guests came?

— Yes, she was.