Is a nice singing voice genetic?

Basically what I'm trying to ask is, If you know how to sing, is it genetically passed on? Or is it just something some people know how to do and others don't?