Weapon Sway with IK???

Is it possible to make weapon sway with IK? and how?