Does it really affect me?

I’ve been dying to get pregnant but for some reason no luck so far. A lot of people tell me it’s because I won’t stop thinking about it. Could that really be the case? I had a miscarriage about 1 1/2 ago . I’ve been trying on and off again for the past 6 months to get pregnant and no luck 😐 there some months where me and my husband try and other where we don’t and want to wait . No brith control , no pull out method just don’t have sex when I ovulate.