Is 'by' a preposition?

Is ‘by’ a preposition?