Yes it can, but the orbits are very unstable to the slightest perturbation, and the photon quickly escapes or falls into the black hole. This leads to some interesting optical effects if you were to be located close to a black hole. The images of distant stars close to the edge of the black hole would be distorted into ring-shaped haloes, possible of different colors as a result of their differing gravitational red shifts.