36 weeks having contractions

last night my husband and i had sex and 30 minutes later i started having contractions that were pretty painful but i didn’t think anything of it. they ended up being 3-5 minutes apart lasting 45 seconds - 1 minute long and ended up being PAINFULLLLL. this went on for 3 hours and i finally forced myself to sleep. does this mean anything ??