Already happening, despite not being specifically called railguns.
Besides, "Railguns" don't shoot through things. They fire a projectile that flies similarly to a bullet, which then transfers kinetic energy into a target. Depending on the exact qualities of the surface (and assuming this is...