I don't think motorcycles are much more dangerous than bicycles or scooters. In any case, you must comply with the rules of road traffic. In order to maximally protect yourself, especially while you will learn to ride, I advise you to buy the appropriate equipment. You need to choose good helmet, jacket, knee pads. Now the Internet has a lot of useful information, for example, here https://bestmotoproducts.com/best-bluetooth-motorcycle-helmet/ are described in detail different helmets for moto, I think that this will help you choose. If you ride in the right equipment, don't violate the rules of the road, don't get drunk on a bike, don't exceed the speed, then I think that you will be safe. I had a scooter at 16, a motorcycle at 20 and the first car was bought at 26 years old. I'm sure that any vehicle can be safe if you don't violate the rules.