Yes it is possible but the environment and how their musical abilities are shaped plays an important role too. So its no necessary that the child will definitely have the ability
Genetically the child will not be gifted with the ability but the environment that the child is around will directly influence that particular trait throughout his or her life