If that person did not sign a form releasing their copyright on said code yes it can happen. Stack Overflow probably has some sort of click through license agreement.Does that mean I can get sued fromcopyingborrowing code from Stack Overflow and other programming blogs?