If paused can you go back a couple of steps/layers and restart?

I ran out of filament 12hrs into a 14hr print. Clicked resume and now it doesnt know what filament im used and doesnt have the hotend hot enoungh and continues to run without filament coming out and finally fixed that issue but now im 5 layers past where i need to be and filament is trying to float in the air… can i go back 5 layers and start it where it should be or am i screwed?

No, you cannot back up and try again. Sorry.