Yes, some words can function as both prepositions and other parts of speech, such as adverbs or conjunctions. It is important to consider the role of the word in the specific sentence to determine its function.