Yes, you can end a sentence with a preposition
Let’s bust one of the big myths about the right way to write: that you shouldn’t end a sentence with a word like ‘after’, ‘in’, ‘to’, ‘on’, or ‘with’.
Prepositions describe the relationship between the noun or pronoun and other words in a sentence. For example, in the sentence below over is the preposition:
“His coat was over the chair.”
There are times when it would be impossible to avoid putting the preposition at the end of the sentence without creating a bit of a clunky mess. For example:
“What did you put that there for?”
Try writing that sentence without putting for at the end. It sounds a little awkward, doesn’t it?
And this is why the Oxford Dictionary says: “There’s no necessity to ban prepositions from the end of sentences. Ending a sentence with a preposition is a perfectly natural part of the structure of modern English.”