Can a hospital do a blood test for pregnancy?

Or go to the doctor?