Does the temperature confirm a pregnancy?

Yes, your temperature can also confirm a pregnancy. But, it's only after a luteal phase of at least 20 days that one can absolutely confirm a pregnancy without taking a test. 

The temperature remains high after ovulation, as the progesterone is released into the body to aid in the possible fetus' development. If a pregnancy occurs, the temperature remains high even after expected period, thus indicating, and later on confirming, a pregnancy.