Pregnancy test

Is been 27 days since I last had sex. Would a pregnancy test be accurate now. I missed a period and that never happens. I recently started bc and am unsure how my body will react and if I will or will not have a period. Will a pregnancy test be accurate now?