Pregnancy scare

Can u get pregnant while on the iud cause I took a pregnancy test and it came back positive