Hello. You did not show the poem to which this question refers, which makes it impossible for it to be answered accurately. However, I will try to help you in the best possible way.
A theme can be developed at the end of the poem, when the speaker exposes the main idea of the poem through details in its structure, sounds, resources and literary devices and words that influence the reader's understanding of an idea and show it, expressing it a strong message.