If "Fred watched TV while George went out to buy groceries. After an hour he got up.", is "Fred got up." correct?

OPT:
 (A). no.
 (B). yes.
Answer:
(B).