Given an unpaid full project as a part of the interview?

We recently had a designer that left us that did a project like that to get his new job. He showed me the results and clearly he wowed them. I am personally against the idea of doing this to a candidate but it’s not necessarily a scam.