Ultrasound, pcos and endometriosis

Does an ultrasound diagnose pcos and endometriosis?