Wanting another baby after miscarriage a year ago.

I was 20 weeks pregnant and went in for a visit and lost baby. just last month I lost another one lucky for me I wasn't very far along maybe 4-5 weeks. I'm 34 going on 35 years old and just wondering if I should just give up or keep trying?