Any kind of outdoor sport involves the element of risk. However, selecting a well-protected route that fits within your climbing abilities could prevent you from putting your life in danger. When you do the climbing properly, it is reasonably safe.
It is true that accidents take place but most of the time, they are because of the error of the climber. If you think that you or your loved one and the partners you are with when climbing are responsible and smart, then there is nothing much to worry about. However, this sport or outdoor activity is not for the reckless.
Every year, the Yosemite National Park estimates around 25,000 to 50,000 visitors that climb. Out of these visitors, the average annual climbing deaths are 2.5, which is just 0.01 percent. If you learned climbing from a knowledgeable mentor, you follow safety procedures and precautions, the risk is very small.