Yes anticipation can cause that most definitely. Finger placement on the trigger and hand placement on the grip are very important as well. Just remember to squeeze evenly and let the shot suprise you. Practice dry firing and listening to the click as if it were a shot.
Not bad, the dry fire will help with the flinch, also try a sighting in target and see where you are putting your shots. Practice often, not just spray lead down range, take time to look and see what the results are.
Another way to check if you are anticipating recoil is to get some snap caps, and randomly load them in your mag. That way when you hit one if you here click and you move off target you are anticipating, if not then you are fine.
I actually don't have this problem, but I spent years shooting air soft and paintball guns so there was never any recoil to anticipate.
An exercise I use to help make the shooter more conscious of flinch and recoil anticipation/heeling:
Place a SPENT CARTRIDGE on top of the slide after racking it with no magazine and chamber empty. The casing will block the sights, that's OK. Pretend you see the front sight, aim in a safe direction with the rear sight only, and squeeze the trigger. If the casing falls or jerks or tilts, this is lack of follow-thru (pistol is moved). Especially helpful with revolvers and small semiautos.