Tubes tied

I'm 8 weeks pregnant but baby doesn't have a heart beat, and baby hasn't developed since 4 weeks. The surgeon is removing my baby on September 12. I also have a consultation tomorrow to get my tubes tied. Does any one know if they can tie my tubes before the baby is removed or will they have to wait tell after.