You might find your pellet comes out as a molten lump of steel due to the eddy currents generated in the projectile. You also need a hefty power supply as EM guns are not very efficient and not really worth it below about Mach 6 when conventional guns become very inefficient.