When writing an essay is it ok to switch from past tense to present tense in the last paragragh

That depends upon the meaning you wish to convey.