my friends pregnant

so my friend is worried that she’s pregnant bc her boyfriend didn’t pull out when’s a good time to test?