Can I restore my saved TIF file?

During retouching, I saved my file as a TIF and then flattened it and saved it as a JPEG. I accidentally saved the TIF again while flattening it without layers. Is there a way to restore my TIF file with the layers?