Am about 6 weeks pregnant and my BMI is about 31. Could that affect my pregnancy and the health of my baby or increase the chance of any miscarriage?

Possibly. But you should not attempt weight loss during pregnancy. Wait until your pregnancy has concluded. Make sure you're eating a healthy diet and getting daily exercise. Also, make sure you're tested for gestational diabetes, and if the tests are positive, discuss potential treatments with your ob.