Yes, you can—most of the time. A preposition shows the relationship of a noun or pronoun to some other word in a sentence. This relationship usually has something to do with time, space, or location.
An English grammar snob was sitting in a coffee shop at a railway station. A young person sitting at the same table asked the lady in a friendly tone, “Ma’am where are you going to?” The lady replied ...