Pacemaker while pregnant?!

Kenzie
Does anyone know if you can go through surgery to have a pacemaker put in while pregnant?? I have had heart issues for a while and my heart Dr just kept putting it off. Now my heart is so weak and only running at 30-40 bpm. And then shoots to over 200+ bpm. I have needed a pacemaker for 2 years but they have held off til now I am at a very high risk.