is yes it can be bent due to the curvature of spacetime produced by a strong magnetic field. I can give a very short answer why, without going into too much detail, how the resulting bent geodesics might look. Einstein's field equations state: Gμν = 8πTμν, G μ ν = 8 π T μ ν, Energy-Momentum curves spacetime.