Re: Is it a correct way to use the word 'literally'?
Hi and welcome to Using English.
The word "literally" is often misused in English by native speakers.
It means that something happened in fact, exactly that way.
If I say "And I was literally screaming at him" it needs to mean that I was actually shouting. Unfortunately, please tend to use it as you have, to add emphasis, meaning "I was angry when I spoke to him."
While your sentence is typical of common use, I can't say it's correct.
I'm not a teacher, but I write for a living. Please don't ask me about 2nd conditionals, but I'm a safe bet for what reads well in (American) English.