It would be acceptable if the results of the project were sufficient to make a hire/no-hire decision.
If I do one two hour project, and either get an offer letter or polite refusal in response, I'd do it in a heartbeat. But no one does that. They would be fools if they did.