Obviously you can get pregnant, you have been pregnant twice. I'm really sorry to hear that those pregnancies didn't have happy endings for you. Sadly it's not that uncommon, something like 15-25% of recognised pregnancies end in miscarriage.
Have you had any advice from you doctors about what might have caused your miscarriages? I don't think generally they start to refer women for early pregnancy advice until she's had a stronger history of miscarriage like 3 in a row. It sounds awful, but that gives you an idea of just how terribly common it is. But it would be worth asking you GP if they have any information on causes of the previous losses and if they have any advice for you.
I suppose the obvious thing to look at, given you've asked the questioning a diabetes forum, is what is your diabetic control like? What's your hba1c? Have you been under pre pregnancy assessment by your DSN? Type 1s aiming to get pregnant are advise to have a hba1c under 48 and there are tight blood sugar targets during a pregnancy because high blood sugar is harmful for the baby and can be a cause of miscarriage or foetal abnormality.