transvaginal ultrasound

can a transvaginal ultrasound detect a pregnancy? Specifically a few months in?