Yes, a bank can refuse to give you your money if they believe that the money is not legitimate.