May i or not?

May I take a pregnancy test 10-11 days before my period is due or should I wait 5 or less days before it is due ? My period is due on the 23 or 24.