If you rob a bank, but give the money back, did you commit a crime?

If you rob a bank, but give the money back, did you commit a crime?
Updates
+1 y
Democrats have told me that the reason Biden isn't in trouble for illegally having classified documents in his garage, was because he gave them back. I'm confused. If having classified documents is illegal for a vice president or senator, and robbing banks is illegal, what difference does it make if you give them back?
If you rob a bank, but give the money back, did you commit a crime?
Post Opinion