Can they test me or does it have to be in a row?

Okay so I've had 2 miscarriages and they weren't in a row.

2017 I had one at 6 weeks

2019 I had a healthy daughter

2020 I had one at 6 weeks.

Would they be able to do some testing to see what's up or are they not able to because they werent in a row? (I'm from the UK)