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.