Software can correct rolling shutter. As long as it's a pan, and not something bouncing or jarring the camera, it should correct really easily.
Rolling shutter is a hardware issue. There's no way to inherently correct it, although there are ways to lessen its effects. Limiting pans and camera movement helps a lot. Shooting lower resolution may also help.