Trying again after miscarriage

My husband and I just recently found out we were expecting our first child. At 9 weeks we found out the baby never developed correctly and we were/are still devastated. I had a d/c on Monday of this week and have heard that can lead to complications in the future. Anyone heard of this? How long before we can try again?