Unfortunately miscarriage is a common outcome of pregnancy.  It doesn’t necessarily indicate that the same would happen again.  There are assessments that can be done to exclude underlying factors before trying again such as checks on your thyroid function or uterine problems.  Whether this is appropriate for you will depend on your age and how long you have been trying for your second baby.  My advice to you would be to have a consultation with one of our doctors who can review all your clinical history and advise you on the best way forward.