Ttc after miscarriage but...

Samantha
I start ovulating tomorrow and I had a miscarriage in late July I've been ttc since with no luck and I found out yesterday I need carpal tunnel Surgury since my nerve is dying I need to do it asap. But should I stop ttc or will Surgury be safe I don't see the doctor till friday to ask questions.