Taking a pregnancy test at night


My period is 23 days late, but I haven’t had unprotected sex, I just messed up my pills last month. We waited until I was taking my pills normally for a week, then used a condom and just to be extra safe he didn’t finish inside me, even with the condom. I took a test about 10 days into my late period, and it came out negative, but I took it at night, around 10pm. Does taking it at night mean it will be inaccurate, even with a period 10 days late? Or is it because of the messed up pills?