Vowels are always voiced, and have no attack of their own. So, by this definition, yes, y and w can represent vowel sounds in words. Usually, when they do represent vowels, they are used in.