Yes, a hammer is commonly used for smashing objects, among other purposes. Its main parts are the head, which is typically made of metal, and the handle, usually made of wood, metal, or plastic. The head's weight and the swinging motion of the handle can be used to generate force and break or flatten items.
However, it's important to note that using any tool, including a hammer, should be done safely and appropriately for the task at hand. Misuse of a hammer or using it to smash objects not designed to withstand such force can lead to damage or injury. Always use appropriate safety equipment and follow proper safety guidelines when using a hammer or any other tool.