Yes, these are the two witnesses that testified of Jesus, namely the Law and the prophets. These two groups has two representatives Moses for the Law, and Elijah for the prophets. Moses smote the earth with plagues and turned water into blood (Exodus) and wrote down the Law on stone, and Elijah had the power from God to hold back that rain (1 Kings 17). These two groups throughout Israel's time period had a constant testimony before the nation until Christ's death and resurrection at the cross and final nail in the coffin was Christ's judgment of them in 70AD.
See, Revelation was written to 1st century Christians and Revelation 1-3 sets the stage of this. So in my view, Revelation mainly deals with the hard times Christians will face during the time period of harsh persecution from the Jews and Romans, the destruction of Mostly Jerusalem, then Roman, by Christ Himself (using the Roman army vs Jerusalem, and using Christians and their faith and endurance vs the corporate Roman beast and individual Roman beast). So for the saints in that day, this book gives them a message to hang in, persevere, endure, do not give up hope, God ultimately wins and is victorious.
If you read Revelation with a 21st century mindset or Goggles, then you render Revelations totally meaningless to its first readers, namely the 1st century Christians.