It depends how old the boy is! For purposes of the explanation, let’s go with ages 9-12. Did is always used in its base form, which is did. It’s a helping verb for the past tense. Since did is “helping” out the main verb, which in this sentence is buy or bought, it helps the main verb to be in the past tense. Therefore the main verb does not need to be marked for tense, because the helping verb took care of the that. The past tense is shown by the helping verb, or for older students, “auxiliary” verb. In a sentence about the past without an verb, the main verb does need to be in the past tense form, and the sentence would read, “My dad bought me a dog last year.”