Is 'y' classed as a vowel?

Y may serve as a vowel, a semi-vowel or a consonant. In the word by, it is a vowel; in hay it is a semi-vowel; in yes it is a consonant.