You can make your feet more comfortable with the hammertoes without having surgery by using non medicated padding for your toes and wear wider shoes that accommodate the hammertoes much more comfortably.
But to actually fix the hammertoe will require surgery to fully correct the hammertoe.