Would a linguist find the following sentence to be a valid English sentence grammatically?

I told Daniel that the exam was cancelled.
acceptable