Yes, a sentence can be a two-word. For example, “Lions roar”. This is a two-word sentence and is a complete sentence.