No, her answer doesn't make sense in the given context. Which speech is it that you wish to use?--
Son: Mom, can I sleep over at a friend's house?
Mom: When? Which friend?
Son (arriving home on foot): Mom, I needed you to pick me up at school today!
Mom: If only you had told me.
Student or Learner