No. If you didn’t save the Source code (meaning the C++ code you wrote in the IDE) on your PC, it is gone.
Save-As often, renaming as you go, can be a simple letter change at the end:
Test1, Test1a, Test1b, etc. and add a
/* comment line */
at the top of your sketch with a note about what is different in that particular rev.
If you mean the compiled .hex file that was uploaded to the Arduino, you can search your hard drive for the Temp/Build folder that was created when the file was compiled and find the one that matches the date & time you created it. Open File:Preferences, select Verbose Outputs. Compile a simple program, when done scroll back thru the output and find the folder path to see where they are being stored.
I think you can use avrdude commands to upload that file to an arduino, I’ve never done it myself.