No. They are not. In fact, paid or unpaid, take-home assignments are unethical. They are built on the power imbalance between the employer and the job candidate.
The test is easy: the person who is giving the assignment would themselves be annoyed, inconvenienced, and feel pressurized if they got given a similar assignment when looking for a job themselves. You know "do onto others..."