No, in fact, it's
not the same with bank deposits. Of course you don't get back the same dollar bills; frankly, that's an offensively specious false analogy. But when you deposit money into a bank account,
you still own that money; if you were to close your bank account tomorrow, you'd get a cheque for the balance.
Social Security, on the other hand, is a "pay as you go" program. When you contribute money into the Social Security trust fund, it is used to satisfy payments to current recipients. If it's still solvent and operating when you retire or become disabled, then you can expect to receive benefits similarly (though, technically, retirement/"old age" and disability benefits come from different funds).
Moreover, if the fund were to go insolvent — or Congress were to shut the program down — tomorrow, you would have no recourse. (Whereas with bank deposits, you have recourse at least up to the FDIC insured maximum.) If you renounce your US citizenship, or decide to fund your retirement yourself, you don't somehow magically get back the money you contributed, and you're still subject to payroll taxes in the latter case.