I do not see why not. Just a question of making the rail gun big enough or improvements in the magnets to achieve orbital velocity. The question would would the projectile and/or components survive the forces caused by the acceleration.
And survive coming back into the atmosphere. I would assume the projectile would burn up.