Don't paste from stackoverflow and do not hire people who paste from stackoverflow or anywhere online. This is literally how software is compromised. I worked with people at another company who had compromised a small part of Google and several banks this way. They contacted the security department later but they were surprised by the number of companies they were able to compromise just by posting instructions online.
I would add - unless it's a very short snippet and you understand exactly what it does. My top SO answer is how to convert and IP address from string to integer representation in Python. It's one or two lines, it's perfectly fine to copy that sort of thing. I've actually copied my own code from SO on several occasions.