It is not possible to generalize about whether or not drums affect hearing. In general, the drums are not too loud, and exposure for no more than 2-3 hours a day will not usually affect your hearing too much.
Drums are percussion instruments with a strong sense of rhythm and a loud pitch. The middle ear cavity of the human body has a certain buffer mechanism, under normal circumstances not more than 2-3 hours of contact per day, generally will not have too great an impact on hearing.
Of course, the sound of the drums or long-term exposure is not recommended, if the external noise is too loud, prolonged exposure to the noise environment may produce some damage to the inner ear hair cells, may cause hearing loss, and even tinnitus symptoms. Usually pay attention to avoid excessive exposure, work and rest.
So if you want to learn drums, it is recommended to go to a professional organization and practice at a reasonable time.