Trying after 2 MC

Ashley
Me and my husband have  been trying to conceive for two years and I have had two miscarriages. Should I go to a clinic and get a fertility test?