Iud, cum

I had my iud 2 weeks ago et I got it within my menstruations is it possible to get pregnant? My OB told me it’s immediately effective but I need your opinion