Can hemoptysis happen from a trauma?

Yes. Hemoptysis (coughing up blood) can occur as a result of trauma. Injury to the lungs (such as pulmonary contusion or a penetrating wound), or injury to the airway (trachea or bronchus) can cause bleeding that leads to hemoptysis.