The answer depends on how you side with a declaration from Merriam-Webster: "It is permissible in English for a preposition to be what you end a sentence with," the dictionary publisher said in a post ...
Each item below offers a choice, in a pull-down menu, of four prepositions for expressing various logical relationships. For each numbered item, select the preposition that best fits in the sentence.