Yes, any songwriter who took part in writing a Grammy-winning song also receives a Grammy award. They can win a Grammy for both Song of the Year and Album of the Year if they helped write a song on that album.