Yes, it is possible to break your hand by punching a wall. However, this largely depends on the type of wall you were punching (e.g. brick, drywall, wood paneling). If you punched though drywall it is less likely. If you have trouble moving your hand call a doctor soon.