It depends on how long and how bad. A temporary gig that pays a lot more may be worth a short term commitment especially if both the income and experience can help you in the future.
it would be a definitely no for me. of course a good paying job is nice, but do you really want to live in a bad place just for the money? You won't even be able to enjoy life.