well your problem is that the male has to have both moves so the baby will have them as a egg move .
this means you need the male to have shadow claw and ice punch and you need to have a female sneasel so the baby sneasel will haveboth moves
for your question it is definetlly possible if the male has a move learned by a tm and the babay is able to learn the tm (if you can actually teach it to it) then it would get it