Pregnancy testing

Do most people only go to the gyno to confirm a pregnancy? Or will any doctor do that for me?