IUD coming out

I recently got an IUD and just had sex. Now, my vagina is really sore (like the feeling some girls get when they’re on their period and) could it be my IUD falling out?