Can you get in trouble for a check you give to your bank that is fake but you dont know its fake?

For example: If you get a check from a lotto give out and you turn it in to your bank and it goes through. Then you get the money out and send to who ever the lotto people told you to send it to and a day later they come to you saying that it was a fake check and said you have to pay back all the money you got. Isn’t it the banks job to find out if the checks fake or not?