Trying to get pregnant

Hi quick question. So I’ve been trying to get pregnant for 3 months now and still no luck. And I’m curious since I’ve had the depo shot 3 times total in my life (not on it anymore been 1 and a half years now) if that birth control shot can make you infertile ?