You need to ask 2 questions to yourself:
- Can you afford not to work and wait?
- Why are you unable to get your dream job?
If you can afford to stay without and income then you may wait and prepare for your dream job. But is it necessary not to work for it? If you are unable to get your dream job, it means that you need some more preparation. If you can prepare alongside working then you should accept the job and prepare yourself for your dream job. If you can not prepare while working and can afford to stay without a job till you get your dream job then, wait for your dream job.