No it isn't racist but saying what many of them believe is misleading. There are over 2 billion of them but if you take how many of them genuinely believe in the cause of the terrorists it is a small fraction comparatively.
As someone who believes in personal freedoms there is plenty to criticise Islam over other than terrorism!