yes
You had to take your hat off to him based on his success.
My Favorite IDIOM Is, When Pigs Fly.
Idiom
If you take a fancy to eating chocolates you will get fat.He took a fancy to her way of speaking.
Take a punch means to take a bow. When the sir won the trophy, his students took a punch.
To include an idiom in an example sentence, simply incorporate the idiom naturally into the sentence to convey a figurative meaning. For example, "She had a chip on her shoulder" is an idiom meaning she was easily offended or held a grudge.
An idiom usually is a sentence, or part of one. It certainly can be used as part of a sentence. The way to tell if it's an idiom is if it makes sense the way it's literally written.
The fighter knew how to take a punch. He had survived many challenges in life and had learned how to take a punch.
The sentence is not, because an idiom is usually a phrase. The idiom is "do lunch," which means to have lunch together, usually while discussing business.
That IS a sentence.
"Throw the book at him" IS a sentence.
"Hit the books" is a sentence.