yea when creating your rig, it's a good idea to leave in a 'natural' bend... you know which way your knees bend, so you kinda create the bones that way as well. even the slighest change in angle like that allows IK to know where to put the pole vector in accordance to how you want it to bend.