Working out and ttc

Is it safe and smart to start heavily working out while ttc? I don’t wanna start working out heavily and then find out I’m pregnant and it possibly put a strain on my body and make me miscarry