Test timing

Hello all, I know it is best to pregnamcy test in the morning but can you test in the afternoon as well?