No matter when you compose the conclusion, it should sum up your main ideas and revisit your thesis.
This means that even if you write the conclusion at the beginning or the end of your essay, it should still review the main points of your paper and restate your thesis in a clear way so the reader remembers your main argument.