...yes?
A (human) coder should definitely be able to think about a novel problem and come up with an algorithm to solve it without copying the algorithm from someone else. Particularly for those circumstances where there isn't any option but to come up with a novel solution.