Help please!

Me and my boyfriend haven't had sex in a while but when we try to its sore and I bleed. Could it be from not having sex in a while?