Is throwing your hair in the garbage safe ?

I wanted to be sure because In biology we learned that it had DNA and stuff so is it safe thanks