Many earthquakes happen on the ocean floor. Big ocean waves can form after a quake resulting in a tsunami.
The shaking of the ground is not what kills most victims of earthquakes. The main killers in earthquakes are falling buildings, fires, landslides, avalanches and tsunamis.
Steel, reinforced concrete and wood are good building materials for an earthquake resistant house because they flex somewhat without breaking. Family homes built completely out of brick are not as safe because they can break apart easily.
You may not notice a magnitude 2 quake.