Sex on 6 weeks pregnant

It's okay to have sex me and my husband had sex today I felt pain on my left side only for few minutes then it's gone is it okay though no blood or anything?