Doctors visit

If I go to the doctor for a formal pregnancy test, will they let me know right away or will they send me home and call me a couple days later?