No, these swords were quite literal. Read the context of verse, the disciples did go out and get real swords, and they were carrying them in the Garden of Gethsemane when Christ was arrested a few verses later:
“47 And while he yet spake, behold a multitude, and he that was called Judas, one of the twelve, went before them, and drew near unto Jesus to kiss him.
48 But Jesus said unto him, Judas, betrayest thou the Son of man with a kiss?
49 When they which were about him saw what would follow, they said unto him, Lord, shall we smite with the sword?
50 And one of them smote the servant of the high priest, and cut off his right ear.” Luke 22:47-50
However, the purpose of the swords was not to defend Christ with, or even for the disciples to defend themselves with. It was to fulfill a prophecy of the Messiah, as Jesus explained in Luke 22:37-38:
“37 For I say unto you, that this that is written must yet be accomplished in me, And he was reckoned among the transgressors: for the things concerning me have an end.
38 And they said, Lord, behold, here are two swords. And he said unto them, It is enough.”
The prophecy Jesus is referring to (”this that is written”) is from Isaiah 53:12:
“12 Therefore will I divide him a portion with the great, and he shall divide the spoil with the strong; because he hath poured out his soul unto death: and he was numbered with the transgressors; and he bare the sin of many, and made intercession for the transgressors.”
Don't you realize that I could ask my Father for thousands of angels to protect us, and he would send them instantly?
The swords fulfilled prophecy but the act of using them in self-defense was not a sin. Jesus knew what would happen and commanded they bring them. He would not ask the disciples or us to do something that would harm our relationship with God.