Can "did" be used in affirmative sentences? [duplicate]

Solution 1:

Yes, you can use 'did' to indicate you are writing in the past tense. It can be used to add emphasis.

This question seems similar to yours: "did shoot" vs "shot"

Solution 2:

In I did play soccer which is grammatical, did is used for emphasis.