Will I be able to bend my toes after hammertoe surgery?

There are three bones and two joints in each of your toes.  The ability to bend your toes after surgery depends on the level of the deformity, which joints are affected, and if the deformity is flexible or rigid.   Most hammertoes that require surgery don't bend at one or more of these joints anyway, the purpose of the procedure is to rebalance the toe, mitigate the pain and allow the foot to fit back into a shoe.