IUD after one month

So I’m still spotting on and off a month after getting my IUD. Sorry if this is a stupid question but am I allowed to have sex? How long will I spot for? I’m tired of wearing panty liners!