My husband wont have sex with me !

My husband wont have sex with me. The last time we had sex was November and I was so focused on him getting of that I received nothing from it . He is afraid hes going to hurt the baby so his sex drive has completely diminished. So whenever we do have sex my focus is solely on him, I feel like I'm trying to convince him to still like me. Hes never been this way in the past and the dr told me some men are just like that . Well I'm 36 weeks and the dr is telling me that sex can help me progress by softening my cervix and diallate but he is just not wanting to do it . Am I able to achieve the same thing through mastubating ?