Yea, shinies can be used for breeding... but there's no guarantee what hatched from the egg will be shiny. Although I hear somewhere, that if you use a shiny instead of a regular one, the chances of it being a shiny will go up. IDK, I really should look into it... XD