Anyone who repeats the line "They (terrorists) hate us for the freedoms we have" will not be allowed to run for president of the USA. (via Sadly, No). Just like someone who thinks 2 plus 2 equals 5 will not be hired as a math teacher.
However, an exception could be made after the candidate reads a history book, any history book will do. Or even a newspaper. Or has a conversation on Middle-Eastern politics with someone who is not affiliated with the Republican party. You know, someone who is reality-based.