Asking for a friend

Dally :)
If there's any chance at all youre pregnant and your periods late, can you go ahead and test? Will a test detect it as long as you've missed a period? Or do you still have to wait a while?