No, because bailing out the depositors will not keep the bank from going under. The bank will still go out of business and its investors will still lose all their money. Same for the next bank that goes under, even if its depositors are also bailed out.