Topic sentences are typically found at the beginning of a paragraph. But this does not mean that they cannot be placed elsewhere in the paragraph. In some cases, when the details discussed can be summarized into a general statement, topic sentences can be included at the end.
Similarly, in some paragraphs where multiple concepts are discussed, topic sentences may be used in the middle of the paragraph. The placement depends on the number of topics being discussed and the way they are discussed.