Let's say I have this python code. It has an issue, so I'm going to ask about it on Stackoverflow.
>>> print "Hello SyntaxError: EOL while scanning string literal.
Them user comes along with the code for the solution to the issue.
>>> print "Hello"
Then let's say this code is part of a "big" project I've been working on. This project will eventually be published. Is it okay to use the improved/fixed code from the user who answered your question?