Answer:
It is possible if the name of the horse which you were riding on is named “Friday”, so the you rode into the town on your horse, Friday and then you rode out of the town on the same horse (Friday). The given scenario has nothing to do with any actual day of the week.
Explanation: