Yes. The single word "Fire" can function as a complete, grammatically correct sentence in two distinct ways:
"Fire!" – A warning shout alerting others to a blaze.
"Fire!" – A command to shoot a weapon, launch a projectile, or dismiss someone from employment.
In the sentence "The fire is burning," "fire" is a noun subject, but the sentence requires the verb phrase "is burning." Alone, Fire! stands complete as an exclamation or command.
Such one-word sentences are called holophrases or elliptical sentences. They're fully grammatical because context supplies the missing syntactic elements.